- bugfix for ogg file playing (now we properly handle stereo ogg files)
This commit is contained in:
parent
ff3bb353fc
commit
460e887772
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue