samples_decoded was not necessary
git-svn-id: svn://anubis/anaglym/trunk@284 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
a3559623ed
commit
a4024bfd2c
3
AV.cc
3
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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user