mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
whitespace and formatting cleanup
--HG-- branch : minor
This commit is contained in:
@@ -68,14 +68,16 @@ int w_Decoder_decode(lua_State *L)
|
|||||||
|
|
||||||
int decoded = t->decode();
|
int decoded = t->decode();
|
||||||
if (decoded > 0)
|
if (decoded > 0)
|
||||||
luax_catchexcept(L, [&](){
|
{
|
||||||
SoundData *s = instance()->newSoundData(t->getBuffer(),
|
luax_catchexcept(L, [&]() {
|
||||||
decoded / (t->getBitDepth() / 8 * t->getChannels()),
|
SoundData *s = instance()->newSoundData(t->getBuffer(),
|
||||||
t->getSampleRate(), t->getBitDepth(), t->getChannels());
|
decoded / (t->getBitDepth() / 8 * t->getChannels()),
|
||||||
|
t->getSampleRate(), t->getBitDepth(), t->getChannels());
|
||||||
|
|
||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user