Browse Source

[alsa_io] dont compare sample_rate with error and bail out.

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3343 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.117.0
torben 17 years ago
parent
commit
1051ee3606
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      tools/alsa_in.c
  2. +2
    -2
      tools/alsa_out.c

+ 2
- 2
tools/alsa_in.c View File

@@ -124,8 +124,8 @@ static int set_hwparams(snd_pcm_t *handle, snd_pcm_hw_params_t *params, snd_pcm_
printf("Rate %iHz not available for playback: %s\n", rate, snd_strerror(err));
return err;
}
if (err != rate) {
printf("Rate doesn't match (requested %iHz, get %iHz)\n", rate, err);
if (rrate != rate) {
printf("Rate doesn't match (requested %iHz, get %iHz)\n", rate, rrate);
return -EINVAL;
}
/* set the buffer time */


+ 2
- 2
tools/alsa_out.c View File

@@ -144,8 +144,8 @@ static int set_hwparams(snd_pcm_t *handle, snd_pcm_hw_params_t *params, snd_pcm_
printf("Rate %iHz not available for playback: %s\n", rate, snd_strerror(err));
return err;
}
if (err != rate) {
printf("Rate doesn't match (requested %iHz, get %iHz)\n", rate, err);
if (rrate != rate) {
printf("Rate doesn't match (requested %iHz, get %iHz)\n", rate, rrate);
return -EINVAL;
}
/* set the buffer time */


Loading…
Cancel
Save