Skip to content
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 backend doesn't support exclusive mode? #181

Open
laiyonghao opened this issue Jan 17, 2019 · 8 comments
Open

WASAPI backend doesn't support exclusive mode? #181

laiyonghao opened this issue Jan 17, 2019 · 8 comments

Comments

@laiyonghao
Copy link

laiyonghao commented Jan 17, 2019

Hello,

I added RTAUDIO_HOG_DEVICE to StreamOptions object, but my application doesn't worked on EXCLUSIVE MODE.

    RtAudio::StreamOptions so;
    so.flags =  RTAUDIO_MINIMIZE_LATENCY | RTAUDIO_SCHEDULE_REALTIME | RTAUDIO_HOG_DEVICE;

I read the RtAudio.cpp file and found AUDCLNT_SHAREMODE_SHARED is passed to renderAudioClient->Initialize(),

renderAudioClient->Initialize( AUDCLNT_SHAREMODE_SHARED,
                                          AUDCLNT_STREAMFLAGS_EVENTCALLBACK,
                                          desiredBufferPeriod,
                                          desiredBufferPeriod,
                                          renderFormat,
                                          NULL );

Should be use AUDCLNT_SHAREMODE_EXCLUSIVE here, and do other changes accordingly, when RTAUDIO_HOG_DEVICE is set to so.flags?

compiler: VC2013
OS: Windows 7 SP1
RtAudio: 5.0.0

@MarcusTomlinson
Copy link
Member

The WASAPI backend does not currently support exclusive mode. No promises, but I'll see if I can get to it over the weekend.

@garyscavone
Copy link
Contributor

garyscavone commented Jan 17, 2019 via email

@angryoctopus
Copy link

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.

@MarcusTomlinson
Copy link
Member

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.

@angryoctopus
Copy link

I might take a look and see if I can figure it out.

@sonoro1234
Copy link
Contributor

smallest latency in windows happens with ASIO.

@angryoctopus
Copy link

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.

@Abhishek0815
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants