Ryujinx-SDL/src/audio
Sam Lantinga 1d25135b71 Fixed bug 4184 - jack audio driver fails in presence of midi ports
Martin ?irokov

Launching an SDL application with SDL_AUDIODRIVER=jack, and then calling SDL_OpenAudioDevice() with whatever parameters fails with an error like this one:

SDL_OpenAudioDevice: Couldn't connect JACK ports: SDL:sdl_jack_output_0 => system:midi_playback_1

This happens because JACK_OpenDevice in src/audio/jack/SDL_jackaudio.c blindly tries to connect to all input ports without checking whether they are for audio or midi.

The fix is to check port types and ignore all non audio ports. Also I removed devports field from struct SDL_PrivateAudioData, because it's never really used and removing unused ports from it would be PITA.
2018-06-01 19:43:53 -07:00
..
alsa Updated copyright for 2018 2018-01-03 10:03:25 -08:00
android Updated copyright for 2018 2018-01-03 10:03:25 -08:00
arts Updated copyright for 2018 2018-01-03 10:03:25 -08:00
coreaudio Fixed bug 4169 - Crash due to audio session observer race condition 2018-05-24 07:30:24 -07:00
directsound revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
disk Updated copyright for 2018 2018-01-03 10:03:25 -08:00
dsp Updated copyright for 2018 2018-01-03 10:03:25 -08:00
dummy Updated copyright for 2018 2018-01-03 10:03:25 -08:00
emscripten Updated copyright for 2018 2018-01-03 10:03:25 -08:00
esd Updated copyright for 2018 2018-01-03 10:03:25 -08:00
fusionsound Updated copyright for 2018 2018-01-03 10:03:25 -08:00
haiku Updated copyright for 2018 2018-01-03 10:03:25 -08:00
jack Fixed bug 4184 - jack audio driver fails in presence of midi ports 2018-06-01 19:43:53 -07:00
nacl Updated copyright for 2018 2018-01-03 10:03:25 -08:00
nas Updated copyright for 2018 2018-01-03 10:03:25 -08:00
netbsd Updated copyright for 2018 2018-01-03 10:03:25 -08:00
paudio Updated copyright for 2018 2018-01-03 10:03:25 -08:00
psp Updated copyright for 2018 2018-01-03 10:03:25 -08:00
pulseaudio pulseaudio: Just read/dump captured data in FlushCapture. 2018-02-17 18:30:21 -05:00
qsa Updated copyright for 2018 2018-01-03 10:03:25 -08:00
sndio Updated copyright for 2018 2018-01-03 10:03:25 -08:00
sun Updated copyright for 2018 2018-01-03 10:03:25 -08:00
wasapi Fixed MinGW-w64 build 2018-02-24 08:23:44 -08:00
winmm Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_audio_c.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_audio.c Added SDL_THREAD_PRIORITY_TIME_CRITICAL 2018-04-23 22:07:56 -07:00
SDL_audiocvt.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_audiodev_c.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_audiodev.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_audiotypecvt.c audio: Needed to fix two more instances for Visual Studio. 2018-05-21 12:05:17 -04:00
SDL_mixer.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_sysaudio.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_wave.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_wave.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00