Hi! While working on our game engine, we've found out that there is a very weird and rare issue while trying to play MS-ADPCM wav files, which only manifests on a 64-bit builds of the engine.
If I understand correctly, BASS uses MSACM library to play MS-ADPCM data on Windows platforms. It seems that on some Windows 11 systems (we couldn't figure out the particular condition which leads to that - probably particular driver or corrupted system files or something else), MSACM library does not always work correctly, and BASS tends to crash with access violation while playing several MS-ADPCM streams at once. It is not specifically BASS issue, because e.g. NAudio also suffers the same problem, as it also uses MSACM to play MS-ADPCM files under the hood.
In case of BASS, it manifests like this:
Surprisingly, this issue does not exist on 32-bit builds (for both BASS and NAudio), so I smell some x86 vs x64 dll or driver conflict happening (e.g. Win11 has the same 32-bit msacm32.dll in both /System32 and /SysWOW64 folders, but it does not specifically mean something is wrong).
I don't have any idea how to fix this issue, because it seems to be a low-level system issue, but probably a try-catch block or some integrity check could be implemented to avoid crash of the library, and instead return error and continue running?
Thank you and best wishes!