Skip to content

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

Open
@jpcima

Description

@jpcima

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions