Add SoundData:getDuration, returns the duration in seconds

This commit is contained in:
Bart van Strien
2013-01-29 23:19:26 +01:00
parent 7a16e4cb49
commit 8fba362fc5
4 changed files with 16 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@ int w_getSize(lua_State *L);
int w_getChannels(lua_State *L);
int w_getBits(lua_State *L);
int w_getSampleRate(lua_State *L);
int w_getDuration(lua_State *L);
int w_setSample(lua_State *L);
int w_getSample(lua_State *L);
extern "C" int luaopen_sounddata(lua_State *L);