Open laiyonghao opened 5 years ago
The WASAPI backend does not currently support exclusive mode. No promises, but I'll see if I can get to it over the weekend.
To be honest, I don’t think the HOG_DEVICE flag has ever been fully supported in RtAudio. The flag was created during design stages but actual implementation turned out to be difficult or impossible in many cases. I vaguely recall testing it (10 years ago or more) in OS-X, where it seemed like the API would support it, and found that it didn’t work.
On Jan 17, 2019, at 4:45 AM, Marcus Tomlinson notifications@github.com wrote:
The WASAPI backend does not currently support exclusive mode. No promises, but I'll see if I can get to it over the weekend.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/thestk/rtaudio/issues/181#issuecomment-455108193, or mute the thread https://github.com/notifications/unsubscribe-auth/AFOBpUJ9Pl7_Sd8gFy57ewPZXeztfoc1ks5vEEZVgaJpZM4aEwWt.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/thestk/rtaudio","title":"thestk/rtaudio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/thestk/rtaudio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@MarcusTomlinson in #181: The WASAPI backend does not currently support exclusive mode. No promises, but I'll see if I can get to it over the weekend."}],"action":{"name":"View Issue","url":"https://github.com/thestk/rtaudio/issues/181#issuecomment-455108193"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/thestk/rtaudio/issues/181#issuecomment-455108193", "url": "https://github.com/thestk/rtaudio/issues/181#issuecomment-455108193", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
Is there any progress on this? I would really like to get to get the audio latency down and it seems this is the only way to get anything below 10ms. Apparently for pro audio you need to use the IAudioClient3::Initialize to set the actual OS buffer size.
No progress, no. It’s not even been on my radar to be honest. I’ll add it to my todo then. Of course, if you’d like to give it a go @angryoctopus, I’d be happy to review.
I might take a look and see if I can figure it out.
smallest latency in windows happens with ASIO.
I'm aware you can get low latency with ASIO but it does put a burden on the end user to install/configure ASIO drivers.
@MarcusTomlinson pls update if it is fixed? in desperate need of help. I am using rtAudio for my project.I needed MicRaw signal(without any APO effects) ,"WASAPI exclusive mode" capture seems only option.
thanks
Hello,
I added
RTAUDIO_HOG_DEVICE
toStreamOptions
object, but my application doesn't worked on EXCLUSIVE MODE.I read the
RtAudio.cpp
file and foundAUDCLNT_SHAREMODE_SHARED
is passed torenderAudioClient->Initialize()
,Should be use
AUDCLNT_SHAREMODE_EXCLUSIVE
here, and do other changes accordingly, whenRTAUDIO_HOG_DEVICE
is set toso.flags
?