Browse Source

whitespace and formatting cleanup

--HG--
branch : minor
Alex Szpakowski 8 years ago
parent
commit
5dd915ee8a
1 changed files with 9 additions and 7 deletions
  1. 9 7
      src/modules/sound/wrap_Decoder.cpp

+ 9 - 7
src/modules/sound/wrap_Decoder.cpp

@@ -68,14 +68,16 @@ int w_Decoder_decode(lua_State *L)
 
 	int decoded = t->decode();
 	if (decoded > 0)
-	luax_catchexcept(L, [&](){ 
-		SoundData *s = instance()->newSoundData(t->getBuffer(), 
-			decoded / (t->getBitDepth() / 8 * t->getChannels()),
-			t->getSampleRate(), t->getBitDepth(), t->getChannels());
+	{
+		luax_catchexcept(L, [&]() {
+			SoundData *s = instance()->newSoundData(t->getBuffer(),
+				decoded / (t->getBitDepth() / 8 * t->getChannels()),
+				t->getSampleRate(), t->getBitDepth(), t->getChannels());
 
-		luax_pushtype(L, SOUND_SOUND_DATA_ID, s);
-		s->release();
-	});
+			luax_pushtype(L, SOUND_SOUND_DATA_ID, s);
+			s->release();
+		});
+	}
 	else
 		lua_pushnil(L);
 	return 1;