mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 23:46:31 +01:00
Slightly better failure diagnostic
This commit is contained in:
parent
c569788bf2
commit
80e0e86510
1 changed files with 1 additions and 1 deletions
|
@ -808,7 +808,7 @@ static void set_params(void)
|
||||||
params.frames_fill_max = 1024;
|
params.frames_fill_max = 1024;
|
||||||
params.frames_xrun_max = 0;
|
params.frames_xrun_max = 0;
|
||||||
if (snd_pcm_params(handle, ¶ms) < 0) {
|
if (snd_pcm_params(handle, ¶ms) < 0) {
|
||||||
fprintf(stderr, "%s: unable to set params\n", command);
|
fprintf(stderr, "%s: unable to set params (where=%x, why=%x)\n", command, params.fail_mask, params.fail_reason);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (mmap_flag) {
|
if (mmap_flag) {
|
||||||
|
|
Loading…
Reference in a new issue