Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2008-12-28 12:57:32 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2008-12-28 12:57:32 (GMT)
commit3c4b5c8e4fcf7c156d2f4760c1f38292af83f1c5 (patch)
treea558df1fa37a6ed56df2dc29ed36f0e1e4c93757
parentdce548de0e2e1352ded293d113c854f3234a2280 (diff)
use *set*near pcm functions
-rw-r--r--common/Util/Clooper/audio.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/Util/Clooper/audio.cpp b/common/Util/Clooper/audio.cpp
index d9870f0..6f5a271 100644
--- a/common/Util/Clooper/audio.cpp
+++ b/common/Util/Clooper/audio.cpp
@@ -143,10 +143,11 @@ struct SystemStuff
ll->printf(1, "setting period size : %li\n", period_size);
- if ( 0 > snd_pcm_hw_params_set_period_size(phandle, hw, period_size, 0)){ ERROR_HERE; goto open_error;}
+ if ( 0 > snd_pcm_hw_params_set_period_size_near(phandle, hw, &period_size, 0)){ ERROR_HERE; goto open_error;}
ll->printf(1, "setting buffer size : %i * %li = %li\n", p_per_buff, period_size, p_per_buff * period_size);
- if ( 0 > snd_pcm_hw_params_set_buffer_size(phandle, hw, p_per_buff*period_size)) { ERROR_HERE; goto open_error;}
+ snd_pcm_uframes_t buff_size = p_per_buff * period_size;
+ if ( 0 > snd_pcm_hw_params_set_buffer_size_near(phandle, hw, &buff_size)) { ERROR_HERE; goto open_error;}
break;
}