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

Linux JACK support #74

Open
defensem3ch opened this issue May 14, 2024 · 4 comments
Open

Linux JACK support #74

defensem3ch opened this issue May 14, 2024 · 4 comments

Comments

@defensem3ch
Copy link

Seems that starting this on Linux defaults to PulseAudio. Is there a way for the emulator to output to JACK instead?

@nukeykt
Copy link
Owner

nukeykt commented May 14, 2024

probably you can use SDL_AUDIODRIVER env var to select specific audio backend

@defensem3ch
Copy link
Author

probably you can use SDL_AUDIODRIVER env var to select specific audio backend

I tried this, but didn't have success - audio device still selects "JACK sink (PulseAudio JACK Sink)" rather than jack

@defensem3ch
Copy link
Author

I tried it using export SDL_AUDIODRIVER=jack and got FATAL ERROR: Failed to initialize the SDL2: Audio target 'jack' not available.

@Gigaudio
Copy link

You also need a SDL2 compiled with jack support.
Detection is automatic in the ./configure

I do have, but ran into:
FATAL ERROR: Failed to open the audio stream.

Strace give some:
write(21, "SDL:sdl_jack_output_9\0\0\0\0\0\0\0\0\0\0\0"..., 257) = 257 write(21, "32 bit float mono audio\0\0\0\0\0\0\0\0\0"..., 33) = 33 ... write(21, "SDL:sdl_jack_output_0\0\0\0\0\0\0\0\0\0\0\0"..., 321) = 321 write(21, "system:playback_1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 321) = 321

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

3 participants