whitespace and formatting cleanup

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-10-25 19:56:47 -03:00
parent 8e1482dbd9
commit 5dd915ee8a
+2
View File
@@ -68,6 +68,7 @@ int w_Decoder_decode(lua_State *L)
int decoded = t->decode(); int decoded = t->decode();
if (decoded > 0) if (decoded > 0)
{
luax_catchexcept(L, [&]() { luax_catchexcept(L, [&]() {
SoundData *s = instance()->newSoundData(t->getBuffer(), SoundData *s = instance()->newSoundData(t->getBuffer(),
decoded / (t->getBitDepth() / 8 * t->getChannels()), decoded / (t->getBitDepth() / 8 * t->getChannels()),
@@ -76,6 +77,7 @@ int w_Decoder_decode(lua_State *L)
luax_pushtype(L, SOUND_SOUND_DATA_ID, s); luax_pushtype(L, SOUND_SOUND_DATA_ID, s);
s->release(); s->release();
}); });
}
else else
lua_pushnil(L); lua_pushnil(L);
return 1; return 1;