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

ALSA output, can't open "plughw:0,0" #1

Open
jpcima opened this issue Nov 16, 2019 · 0 comments
Open

ALSA output, can't open "plughw:0,0" #1

jpcima opened this issue Nov 16, 2019 · 0 comments

Comments

@jpcima
Copy link
Member

jpcima commented Nov 16, 2019

Horgand chooses to open ALSA with the default name "plughw:0,0".
If there isn't such a port on the system, opening will fail.

Is it fine to replace "plughw" with ordinary "hw"? (such as "default" port)

horgand/src/organAudioOut.C

Lines 129 to 136 in e790c4f

char pcm_name[50];
sprintf(pcm_name, "plughw:0,0");
if (snd_pcm_open(&playback_handle, pcm_name, SND_PCM_STREAM_PLAYBACK, 0) < 0) {
fprintf(stderr, "cannot open audio device %s\n", pcm_name);
return false;
}

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

1 participant