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-12-03 16:07:55 +00:00
|
|
|
{ "getBlob", l_lovrSoundDataGetBlob },
|
|
|
|
{ NULL, NULL }
|
2018-07-06 03:23:46 +00:00
|
|
|
};
|