View Single Post
Old 09 October 2016, 21:52   #11
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,512
Powersaving will lose if other choice is better sound stability or latency..

--

I'll try hybrid solution: keep default latency (No calls to InitializeSharedAudioStream) until configured buffer size is about same or lower than DefaultPeriodInFrames and the smaller the buffer, the smaller the PeriodInFrames value gets.

--

btw, InitializeSharedAudioStream documentation is incorrect:

"Periodicity requested by the client. This value must be an integral multiple of the value returned in the pDefaultPeriodInFrames parameter to IAudioClient3::GetSharedModeEnginePeriod. PeriodInFrames must also be greater than or equal to the value returned in pMinPeriodInFrames and less than or equal to the value of returned pMaxPeriodInFrames."

"pDefaultPeriodInFrames" should be "pFundamentalPeriodInFrames".

EDIT: Something done. Also calling IAudioClient2::SetClientProperties(). (If it does something)

Last edited by Toni Wilen; 09 October 2016 at 22:01.
Toni Wilen is offline  
 
Page generated in 0.05189 seconds with 9 queries