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); }