kopia lustrzana https://github.com/xdsopl/robot36
set min rate dir to 0
rodzic
d1ed93501d
commit
ea1f5b74b9
2
alsa.c
2
alsa.c
|
@ -126,7 +126,7 @@ int open_alsa_read(struct pcm **p, char *name)
|
|||
}
|
||||
|
||||
unsigned rate_min = 8000;
|
||||
int dir_min = 1;
|
||||
int dir_min = 0;
|
||||
if (snd_pcm_hw_params_set_rate_min(pcm, params, &rate_min, &dir_min) < 0 || rate_min < 8000) {
|
||||
fprintf(stderr, "Error setting min rate.\n");
|
||||
snd_pcm_close(alsa->pcm);
|
||||
|
|
Ładowanie…
Reference in New Issue