mirror of
https://github.com/glest/glest-source.git
synced 2025-08-26 09:24:24 +02:00
- bugfix for ogg file playing (now we properly handle stereo ogg files)
This commit is contained in:
@@ -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){
|
||||
|
Reference in New Issue
Block a user