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

Is there a way to change the device while maintaining the context? #291

Closed
nkari82 opened this issue May 23, 2019 · 7 comments
Closed

Is there a way to change the device while maintaining the context? #291

nkari82 opened this issue May 23, 2019 · 7 comments

Comments

@nkari82
Copy link

nkari82 commented May 23, 2019

I am making a video player for my MR headset.
Unfortunately, when the MR headset enters sleep mode, the MR headset USB sound device is disconnected and another sound device is connected. When you wake the MR headset from sleep mode, the pain begins.

@kcat
Copy link
Owner

kcat commented May 23, 2019

What do you mean by "the pain begins" when the headset is woken from sleep mode? Does OpenAL Soft create noise on the device, or is there a problem calling functions?

Currently it's not possible to change which system device playback is on for a given ALCdevice. It may be possible to implement with some work, though I can't make any hard promises about when (maybe a preliminary option for the next release if it doesn't prove to be too troublesome, or maybe sometime afterward).

@nkari82
Copy link
Author

nkari82 commented May 23, 2019

The program must be run without interruption throughout the day.
When the MR headset enters sleep mode, the program must be shut down and re-run.
This is a pain.

@Pintea
Copy link

Pintea commented May 6, 2020

Would be awesome to have this. Most games nowadays support changing the output device on the fly, which I can't do with OpenAL.

@KinsonDigital
Copy link

This is something I as well am needing in my game. I am trying to implement this myself but I don't know if it is possible

@monaghanwashere
Copy link

+1 for this as well

@kcat
Copy link
Owner

kcat commented Mar 10, 2021

As noted in issue #533, commit e824c80 added a function to change the output an ALCdevice is playing on. It's part of an in-progress extension that's subject to change, but it's available for testing and feedback.

@kcat
Copy link
Owner

kcat commented Jun 27, 2022

This has been added with ALC_SOFT_reopen_device, in 1.22.

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

4 participants