mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 21:43:34 +00:00
Remove redundant SoundData:getPointer()
This commit is contained in:
parent
9127dd823c
commit
91cc385340
|
@ -47,12 +47,6 @@ static int l_lovrSoundDataSetSample(lua_State* L) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int l_lovrSoundDataGetPointer(lua_State* L) {
|
|
||||||
SoundData* soundData = luax_checktype(L, 1, SoundData);
|
|
||||||
lua_pushlightuserdata(L, soundData->blob->data);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int l_lovrSoundDataGetBlob(lua_State* L) {
|
static int l_lovrSoundDataGetBlob(lua_State* L) {
|
||||||
SoundData* soundData = luax_checktype(L, 1, SoundData);
|
SoundData* soundData = luax_checktype(L, 1, SoundData);
|
||||||
Blob* blob = soundData->blob;
|
Blob* blob = soundData->blob;
|
||||||
|
@ -69,7 +63,6 @@ const luaL_Reg lovrSoundData[] = {
|
||||||
{ "getSampleCount", l_lovrSoundDataGetSampleCount },
|
{ "getSampleCount", l_lovrSoundDataGetSampleCount },
|
||||||
{ "getSampleRate", l_lovrSoundDataGetSampleRate },
|
{ "getSampleRate", l_lovrSoundDataGetSampleRate },
|
||||||
{ "setSample", l_lovrSoundDataSetSample },
|
{ "setSample", l_lovrSoundDataSetSample },
|
||||||
{ "getPointer", l_lovrSoundDataGetPointer },
|
|
||||||
{ "getBlob", l_lovrSoundDataGetBlob },
|
{ "getBlob", l_lovrSoundDataGetBlob },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue