No sound on Win64 compile

Support and general discussion.
Post Reply
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

No sound on Win64 compile

Post by Battler » Wed 05 Aug, 2015 1:39 am

So I just compiled the emulator for Win64 using MSYS 2 (which has a GCC 4.9.x), and the resulting Win64 has no sound. Internally, sound appears to be working, but I can hear nothing. No problems on the 32-bit compile.

Edit: Uncommented the pclog call in the error function in soundopenal.c and now the log is full of errors A004 which means invalid operation.

Edit #2: Found the reason. The code uses the DirectSound3D device, which however does not exist in Vista and later. PCem should instead enumerate devices and connect to the appropriate one.

Edit #3: No need to enumerate. Just change:

Code: Select all

Device=alcOpenDevice((ALubyte*)"DirectSound3D");
In the alutInit procedure in soundopenal.c to:

Code: Select all

Device=alcOpenDevice("");
And sound will work.

User avatar
SarahWalker
Site Admin
Posts: 1590
Joined: Thu 24 Apr, 2014 4:18 pm

Re: No sound on Win64 compile

Post by SarahWalker » Wed 05 Aug, 2015 7:54 pm

Merged in rev 288.

Post Reply