devkitPro / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
15 stars 12 forks source link

[Replaced by #23] Switch Audio: Added Audio Out usage and touchscreen code rework #18

Closed Wohlstand closed 1 year ago

Wohlstand commented 2 years ago

THIS PULL-REQEST REPLACED BY #23

Audio Render is a second layer that converts the audio stream to output. Audio Out is the direct output of the audio stream without conversions.

Description

Existing Issue(s)

1) Audio Render API plays with less stability, and in some cases, may turn into silence because of overloads. Audio Out is the direct output of the audio stream without any conversions. 2) Touchscreen API worked incorrectly

WinterMute commented 1 year ago

Could you rebase this against latest switch-sdl2 branch please?

Do you have any test code showing what you've fixed with your changes?

Wohlstand commented 1 year ago

Could you rebase this against latest switch-sdl2 branch please?

Yes, I can. But a question: is that a NEWER branch? Last time when I checked the stuff, it was way OLDER than that dev thing. Now I see, it's fully up to date :eyes:

Do you have any test code showing what you've fixed with your changes?

Yes, this is my simple demo I made for various people to verify the work of audio, and also, the touchscreen (the tiny red dot should be drawn at places where finger is put): music-demo.zip (pre-built thing with the fixed behaviour: DecoderUZK.nro.zip)

I'll test out the stuff and rebase everything somewhere today.

Wohlstand commented 1 year ago

I made the new pull-request #23 instead of this, I made the new branch exclusively for Audio and Touchscreen (as I also included joycon updates from outher pull-requests to my branch because I am tired to wait you so long). So, that PR will contain only my fix, will don't include alien updates.