View Single Post
Old 14 October 2016, 19:40   #35
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,476
Testing winuae.exe 2016-10-13 19:37.

Default format set to 16-bit 176.4kHz in Sound control panel.

I ran WinUAE, loaded a config (WASAPI EX) and and manually entered 176400 in the Frequency box in sound settings. On starting emulation:
WASAPI: IsOffloadCapable() returned 0 00000000
WASAPI: Initialize() 88890020
Sorry, can't initialize sound.


On pressing F12 I noticed that the Frequency box now says 96000. Similarly, if I enter 176400 then save the config, loading it again has 96000 in the Frequency box.

After changing to WASAPI non-exclusive and entering 176400 in the box, continuing emulation there is sound:
WASAPI: IsFormatSupported(2,00000003,96000) (2,176400) 00000001
WASAPI: GetCurrentSharedModeEnginePeriod() CH=2 FREQ=176400 BITS=32 CurrentPeriodInFrames=1792
WASAPI: GetSharedModeEnginePeriod() DPIF=1792 FPIF=32 MinPIF=448 MaxPIF=1792
WASAPI: IsOffloadCapable() returned 0 00000000
WASAPI: InitializeSharedAudioStream() Period=448. HRESULT=00000000
WASAPI: GetCurrentSharedModeEnginePeriod() CH=2 FREQ=176400 BITS=32 CurrentPeriodInFrames=448
WASAPI: '{0.0.0.00000000}.{b32283a3-ec24-40ed-a52a-7128ab296ef6}'
WASAPI: Shared Pull CH=2 FREQ=176400 BUF=492 (984)


Pressing F12 again, 176400 is in the Frequency box as it should be. But if I save and load the config, it gets reset to 96000.

Edit to add: the problem is probably this check in values_from_sounddlg():
Code:
if (workprefs.sound_freq > 96000)
	workprefs.sound_freq = 96000;

Last edited by mark_k; 14 October 2016 at 20:07.
mark_k is offline  
 
Page generated in 0.04858 seconds with 9 queries