1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- orig/modules/src/audioinmodule/alsadriver.cpp
+++ mod/modules/src/audioinmodule/alsadriver.cpp
@@ -125,8 +125,8 @@
throw std::runtime_error(os.str().c_str());
}
- err = snd_pcm_hw_params_set_rate_near(capture_handle, hw_params,
- sample_rate, 0);
+ err = snd_pcm_hw_params_set_rate(capture_handle, hw_params,
+ sample_rate, 0);
if (err < 0)
{
std::ostringstream os;
--- orig/modules/src/audiooutmodule/alsaoutdriver.cpp
+++ mod/modules/src/audiooutmodule/alsaoutdriver.cpp
@@ -129,7 +129,7 @@
throw std::runtime_error(os.str().c_str());
}
- err = snd_pcm_hw_params_set_rate_near(handle, hw_params,
+ err = snd_pcm_hw_params_set_rate(handle, hw_params,
sample_rate, 0);
if (err < 0)
{
|