diff --git a/source/shared_lib/sources/sound/sound_file_loader.cpp b/source/shared_lib/sources/sound/sound_file_loader.cpp index 72d6356c..6a97b93e 100644 --- a/source/shared_lib/sources/sound/sound_file_loader.cpp +++ b/source/shared_lib/sources/sound/sound_file_loader.cpp @@ -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){