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];