Fix Loading Stereo Sound Data

This commit is contained in:
TheBrokenRail
2023-08-05 03:55:30 -04:00
committed by iProgramInCpp
parent b985edac32
commit cc3310b556
2 changed files with 5 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ ALuint SoundSystemAL::get_buffer(const SoundDesc &sound) {
}
// Sound Data Size
int size = sound.m_header.m_length * sound.m_header.m_bytes_per_sample;
int size = sound.m_header.m_channels * sound.m_header.m_length * sound.m_header.m_bytes_per_sample;
// Create Buffer
ALuint buffer;