https://bugs.winehq.org/show_bug.cgi?id=38632
--- Comment #3 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Béla Gyebrószki from comment #1)
Audio works in the original demo version when Win98 mode is selected, but no audio in the default Windows Xp mode: http://www.fileplanet.com/27987/20000/fileinfo/Pharaoh-Demo
I suspect this is a game bug. I see this same behavior in my Windows 7 VM.
The game uses GetVersionEx() to do something relating to audio:
Working in win98 mode gives:
3924.376:002f:Call KERNEL32.GetVersionExA(0033fc78) ret=005179e1 3924.376:002f:Ret KERNEL32.GetVersionExA() retval=00000001 ret=005179e1 3924.376:002f:Call KERNEL32.DuplicateHandle(ffffffff,fffffffe,ffffffff,2104abf0,00000000,00000000,00000002) ret=210021ab 3924.376:002f:Ret KERNEL32.DuplicateHandle() retval=00000001 ret=210021ab 3924.376:002f:Call KERNEL32.GetProfileStringA(2103e758 "MSS",2103e75c "MSSDebug",2103e768 "None",2104b6e8,00000100) ret=210021da
The game's media system DLLs all start with "MSS", and it loads dsound soon after this point in the log.
Non-working in winxp mode gives:
3763.077:0009:Call KERNEL32.GetVersionExA(0033fc78) ret=005179e1 3763.077:0009:Ret KERNEL32.GetVersionExA() retval=00000001 ret=005179e1 3763.077:0009:Call ntdll.RtlAllocateHeap(01720000,00000000,000007e0) ret=0051a8ee 3763.077:0009:Ret ntdll.RtlAllocateHeap() retval=02e3ae70 ret=0051a8ee 3763.077:0009:Call KERNEL32.CreateFileA(00575880 "audio\wavs\plaza1_r.wav",80000000,00000003,0033fc2c,00000003,00000080,00000000) ret=0052211a
There is no mention of "MSS", the WAV files are never used again, and no audio system is ever initialized.