diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-05-31 00:05:38 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-05-31 00:05:38 +0000 |
commit | 79b6c31f2303e34f016363ced6dad3bc3ff35c54 (patch) | |
tree | 7c4fc08df0236e7dc18f347776998c515dcb66c6 /src | |
parent | 9f2026da05582c154b2cd833fce8e877fb9d5375 (diff) |
decrease maximum allowed sample frequency for ALSA devices to 5%, since 48000 would otherwise match with 44100
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@995 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/alsa-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/alsa-util.c b/src/modules/alsa-util.c index 99c1cfa3..5b6d72e7 100644 --- a/src/modules/alsa-util.c +++ b/src/modules/alsa-util.c @@ -284,7 +284,7 @@ int pa_alsa_set_hw_params(snd_pcm_t *pcm_handle, pa_sample_spec *ss, uint32_t *p pa_log_info(__FILE__": device doesn't support %u Hz, changed to %u Hz.", ss->rate, r); /* If the sample rate deviates too much, we need to resample */ - if (r < ss->rate*.9 || r > ss->rate*1.1) + if (r < ss->rate*.95 || r > ss->rate*1.05) ss->rate = r; } |