int w_SoundData_getSampleCount(lua_State *L) { SoundData *t = luax_checksounddata(L, 1); lua_pushinteger(L, t->getSampleCount()); return 1; }