-
-
Notifications
You must be signed in to change notification settings - Fork 18
Wii U: Support For Seperate Gamepad and TV Audio Devices #116
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
base: wiiu-sdl2-2.32
Are you sure you want to change the base?
Wii U: Support For Seperate Gamepad and TV Audio Devices #116
Conversation
GaryOderNichts
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Hmm, this code seems somewhat fragile at the moment.
Closing a single audio device will uninitialize AX, even if other devices are still running. wiiuDevices is also not updated when closing a device, causing potential issues in the frame callback.
Ideally it should be possible to close and reopen audio devices. I think separating the AX initialization from opening and closing audio devices might be a good idea.
|
So with this commit AX will only deinitialize if its the last audio device being closed. |
GaryOderNichts
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks better now. There is still an issue if the first initialized device is closed before the last initialized device though.
874da16 to
398f949
Compare
…dles for device identification
This PR adds in support for separate Gamepad and TV SDL Devices while retaining support for mirroring the audio on both at the same time.
These audio devices can be created as follows:
When setting up SDL_Audio and creating an audio device, if not specified, the audio device will default to
SDL_AUDIO_DEVICE_WIIU_MIRRORED.sorry for the second PR, had to fix some git stuff