From a4024bfd2c32cd142fb9741ea0076b9cfa7ba6c6 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 22 Jun 2010 03:53:32 +0000 Subject: [PATCH] samples_decoded was not necessary git-svn-id: svn://anubis/anaglym/trunk@284 99a6e188-d820-4881-8870-2d33a10e2619 --- AV.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AV.cc b/AV.cc index 0936425..83ca517 100644 --- a/AV.cc +++ b/AV.cc @@ -231,7 +231,7 @@ void AV::Sound::loop(int times) int AV::Sound::decode(Uint8 * stream, int len) { int len_decoded = 0, len_decoded_now; - int samples_decoded = 0, samples_decoded_now; + int samples_decoded_now; int spos = 0; int16_t * s16stream = (int16_t *) stream; int16_t * decoded_stream = (int16_t *) m_ss->buffer; @@ -240,7 +240,6 @@ int AV::Sound::decode(Uint8 * stream, int len) len_decoded_now = Sound_Decode(m_ss); samples_decoded_now = len_decoded_now / BYTES_PER_SAMPLE; len_decoded += len_decoded_now; - samples_decoded += len_decoded / BYTES_PER_SAMPLE; for (int i = 0; i < samples_decoded_now; i++) { int val = s16stream[spos] + decoded_stream[i];