Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/Util/Clooper/audio.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/Util/Clooper/audio.cpp b/common/Util/Clooper/audio.cpp
index 9fdbbce..9a030c0 100644
--- a/common/Util/Clooper/audio.cpp
+++ b/common/Util/Clooper/audio.cpp
@@ -103,7 +103,7 @@ struct SystemStuff
if ( 0 > snd_pcm_hw_params_set_format(phandle, hw, sample_format)) { ERROR_HERE; goto open_error;}
if ( 0 > snd_pcm_hw_params_set_channels(phandle, hw, 2)) { ERROR_HERE; goto open_error;}
- if ( snd_pcm_hw_params_test_rate(phandle, hw, rate, 0))
+ if ( snd_pcm_hw_params_set_rate_near(phandle, hw, &rate, 0))
{
ll->printf("test_rate failed( %i\n", rate);
continue;
@@ -111,7 +111,6 @@ struct SystemStuff
else
{
ll->printf(1, "success! setting rate : %i\n", rate);
- if (0 > snd_pcm_hw_params_set_rate(phandle, hw, rate, 0)) { ERROR_HERE; goto open_error;}
snd_pcm_uframes_t minb=0, maxb= 0;
int mind=0, maxd=0;