-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WASAPI-specific PortAudio API extension header discussion #11
Comments
I'm not sure, but it seems that the flag paWinWasapiThreadPriority allows you to set a custom threadPriority to the scheduler? If so, here's the reference: |
Seems to me that the lowest latency config would be: flags: threadPriority: streamOption: |
Added a flag to request for exclusive mode to a device: Line 28 in 558e5fb
Added code for setting exclusive mode flags for WASAPI: lowl_audio/src/lowl_device_pa.cpp Line 353 in 558e5fb
still need to implement for other drivers that are available in PA, that support some sort of performance setting for pro audio. also need to validate if this code works, and perhaps adjust the parameter if required note: it need to be set before starting the device |
wasapi is now implemented as a driver : #23 The same functionality is also intended for PortAudio, so instead of trying to find a working configuration, different sample rates will be probed and then exposed to the user, so it should be as easy as selecting a configuration that has exclusive mode available. I will still keep it open for now as testing with port audio is not yet completed for this feature |
WASAPI Streams have some latency related and stream behaviour attributes to configure:
PaWasapiStreamInfo:
http://files.portaudio.com/docs/v19-doxydocs/structPaWasapiStreamInfo.html
threadPriority reference (if you find anything else please comment):
http://files.portaudio.com/docs/v19-doxydocs/pa__win__wasapi_8h.html#a561291b0188f6f29246ea669b48e2661
streamCategory reference:
https://docs.microsoft.com/en-us/windows/win32/api/audiosessiontypes/ne-audiosessiontypes-audio_stream_category
streamOption reference:
https://docs.microsoft.com/en-us/windows/win32/api/audioclient/ne-audioclient-audclnt_streamoptions
The text was updated successfully, but these errors were encountered: