From 1120c0780d83e23a0b4ededd91cb240f32c3bed9 Mon Sep 17 00:00:00 2001 From: galaxyhaxz Date: Sat, 1 Sep 2018 00:38:59 -0500 Subject: [PATCH] Update sound.cpp --- Source/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/sound.cpp b/Source/sound.cpp index 7142b3280..45e0b3060 100644 --- a/Source/sound.cpp +++ b/Source/sound.cpp @@ -367,7 +367,7 @@ void __fastcall sound_create_primary_buffer(int music_track) a2.cbSize = 0; } a2.nChannels = 2; - a2.nBlockAlign = 2 * a2.wBitsPerSample / 8; // a2.nChannels * x / 8 (BUG_FIX: per MSDN) + a2.nBlockAlign = 2 * a2.wBitsPerSample / 8; /// BUGFIX: should be `a2.nChannels * a2.wBitsPerSample / 8` a2.nAvgBytesPerSec = a2.nSamplesPerSec * a2.nBlockAlign; sglpDSB->SetFormat(&a2); }