mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
Fix Loading Stereo Sound Data
This commit is contained in:
committed by
iProgramInCpp
parent
b985edac32
commit
cc3310b556
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user