1
Audio / Re: When I disable and re enable audio output device there is no audio output.
« on: October 11, 2017, 02:23:30 am »
This was changed quite a while ago. "Restarting" OpenAL is possible.... Simply put, "restarting" SFML audio is already possible now.
[/quote]
How?
In our situation if a user Hot-Tabs away from the application AND it is using HDMI audio out, we get the error AL lib: (EE) MMDevApiProc: Failed to get padding: 0x88890004, and the audio stops working. The "solution" is to restart the app. However, adding logic to simply restart OpenAL under certain circumstances would be preferable.
Edit: After looking more at the source, it seems that if stop caching SoundBuffer instances in a global object (main screen) and instead cache them as memory objects only, instantiating them as SoundBuffer instances only when required, OpenAL will effectively reset every time we return to the main screen. Is this correct?
[/quote]
How?
In our situation if a user Hot-Tabs away from the application AND it is using HDMI audio out, we get the error AL lib: (EE) MMDevApiProc: Failed to get padding: 0x88890004, and the audio stops working. The "solution" is to restart the app. However, adding logic to simply restart OpenAL under certain circumstances would be preferable.
Edit: After looking more at the source, it seems that if stop caching SoundBuffer instances in a global object (main screen) and instead cache them as memory objects only, instantiating them as SoundBuffer instances only when required, OpenAL will effectively reset every time we return to the main screen. Is this correct?