lovr/src/api/l_data_soundData.c

15 lines
334 B
C
Raw Normal View History

2018-07-06 03:23:46 +00:00
#include "api.h"
#include "data/soundData.h"
2020-11-26 21:14:02 +00:00
#include "data/blob.h"
static int l_lovrSoundDataGetBlob(lua_State* L) {
SoundData* soundData = luax_checktype(L, 1, SoundData);
Blob* blob = soundData->blob;
luax_pushtype(L, Blob, blob);
return 1;
}
2018-07-06 03:23:46 +00:00
const luaL_Reg lovrSoundData[] = {
2020-11-26 21:14:02 +00:00
{ "getBlob", l_lovrSoundDataGetBlob }
2018-07-06 03:23:46 +00:00
};