mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
pcm: simple: Fix asserts
Do not error out on the boundaries. Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
3f1dba9a82
commit
57ae61ce27
1 changed files with 4 additions and 4 deletions
|
|
@ -173,8 +173,8 @@ int snd_spcm_init(snd_pcm_t *pcm,
|
|||
snd_pcm_sw_params_alloca(&sw_params);
|
||||
|
||||
assert(pcm);
|
||||
assert(rate > 5000 && rate < 192000);
|
||||
assert(channels > 1 && channels < 512);
|
||||
assert(rate >= 5000 && rate <= 192000);
|
||||
assert(channels >= 1 && channels <= 512);
|
||||
|
||||
rrate = rate;
|
||||
err = set_buffer_time(latency, &buffer_time);
|
||||
|
|
@ -233,8 +233,8 @@ int snd_spcm_init_duplex(snd_pcm_t *playback_pcm,
|
|||
|
||||
assert(playback_pcm);
|
||||
assert(capture_pcm);
|
||||
assert(rate > 5000 && rate < 192000);
|
||||
assert(channels > 1 && channels < 512);
|
||||
assert(rate >= 5000 && rate <= 192000);
|
||||
assert(channels >= 1 && channels <= 512);
|
||||
|
||||
pcms[0] = playback_pcm;
|
||||
pcms[1] = capture_pcm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue