- bugfix for ogg file playing (now we properly handle stereo ogg files)

This commit is contained in:
Mark Vejvoda 2011-01-26 18:51:43 +00:00
parent ff3bb353fc
commit 460e887772
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ void OggSoundFileLoader::open(const string &path, SoundInfo *soundInfo){
soundInfo->setChannels(vi->channels);
soundInfo->setsamplesPerSecond(vi->rate);
soundInfo->setBitsPerSample(16);
soundInfo->setSize(samples * 2);
soundInfo->setSize(samples * 2 * vi->channels);
}
uint32 OggSoundFileLoader::read(int8 *samples, uint32 size){