mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
Removed some unused functions and fixed up some wrap_ headers
This commit is contained in:
@@ -34,13 +34,13 @@ namespace lullaby
|
||||
/**
|
||||
* CALLBACK FUNCTIONS
|
||||
**/
|
||||
int vorbisClose(void * /* ptr to the data that the vorbis files need*/)
|
||||
static int vorbisClose(void * /* ptr to the data that the vorbis files need*/)
|
||||
{
|
||||
// Does nothing (handled elsewhere)
|
||||
return 1;
|
||||
}
|
||||
|
||||
size_t vorbisRead(void *ptr /* ptr to the data that the vorbis files need*/,
|
||||
static size_t vorbisRead(void *ptr /* ptr to the data that the vorbis files need*/,
|
||||
size_t byteSize /* how big a byte is*/,
|
||||
size_t sizeToRead /* How much we can read*/,
|
||||
void *datasource /* this is a pointer to the data we passed into ov_open_callbacks (our SOggFile struct*/)
|
||||
@@ -72,7 +72,7 @@ size_t vorbisRead(void *ptr /* ptr to the data that the vorbis files need*/,
|
||||
return actualSizeToRead;
|
||||
}
|
||||
|
||||
int vorbisSeek(void *datasource /* ptr to the data that the vorbis files need*/,
|
||||
static int vorbisSeek(void *datasource /* ptr to the data that the vorbis files need*/,
|
||||
ogg_int64_t offset /*offset from the point we wish to seek to*/,
|
||||
int whence /*where we want to seek to*/)
|
||||
{
|
||||
@@ -116,7 +116,7 @@ int vorbisSeek(void *datasource /* ptr to the data that the vorbis files need*/,
|
||||
return 0;
|
||||
}
|
||||
|
||||
long vorbisTell(void *datasource /* ptr to the data that the vorbis files need*/)
|
||||
static long vorbisTell(void *datasource /* ptr to the data that the vorbis files need*/)
|
||||
{
|
||||
SOggFile *vorbisData;
|
||||
vorbisData = (SOggFile *) datasource;
|
||||
|
||||
@@ -31,14 +31,13 @@ namespace sound
|
||||
{
|
||||
|
||||
SoundData *luax_checksounddata(lua_State *L, int idx);
|
||||
int w_getSize(lua_State *L);
|
||||
int w_getChannels(lua_State *L);
|
||||
int w_getBitDepth(lua_State *L);
|
||||
int w_getSampleRate(lua_State *L);
|
||||
int w_getSampleCount(lua_State *L);
|
||||
int w_getDuration(lua_State *L);
|
||||
int w_setSample(lua_State *L);
|
||||
int w_getSample(lua_State *L);
|
||||
int w_SoundData_getChannels(lua_State *L);
|
||||
int w_SoundData_getBitDepth(lua_State *L);
|
||||
int w_SoundData_getSampleRate(lua_State *L);
|
||||
int w_SoundData_getSampleCount(lua_State *L);
|
||||
int w_SoundData_getDuration(lua_State *L);
|
||||
int w_SoundData_setSample(lua_State *L);
|
||||
int w_SoundData_getSample(lua_State *L);
|
||||
extern "C" int luaopen_sounddata(lua_State *L);
|
||||
|
||||
} // sound
|
||||
|
||||
Reference in New Issue
Block a user