mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-14 05:33:48 -04:00
Added 'Using PCM device' message
This commit is contained in:
parent
cdfe5e18d7
commit
72a4346d4d
1 changed files with 2 additions and 0 deletions
|
|
@ -94,6 +94,8 @@ int output_open(output_t *output)
|
||||||
}
|
}
|
||||||
pcm_name = devstr;
|
pcm_name = devstr;
|
||||||
}
|
}
|
||||||
|
if (!output->quiet)
|
||||||
|
fprintf(stdout, "Using PCM device '%s'\n", pcm_name);
|
||||||
if ((err = snd_pcm_open(&pcm, pcm_name, SND_PCM_STREAM_PLAYBACK, 0)) < 0) {
|
if ((err = snd_pcm_open(&pcm, pcm_name, SND_PCM_STREAM_PLAYBACK, 0)) < 0) {
|
||||||
fprintf(stderr, "snd_pcm_open: %s\n", snd_strerror(err));
|
fprintf(stderr, "snd_pcm_open: %s\n", snd_strerror(err));
|
||||||
return err;
|
return err;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue