summaryrefslogtreecommitdiffstats
path: root/polyp/sample.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-08-27 01:29:49 +0000
committerLennart Poettering <lennart@poettering.net>2004-08-27 01:29:49 +0000
commit92bf0a365a3a8390bb3f023458a9e62c31849628 (patch)
tree23adcb50a438e13a0f3d46d492a2992b13b8f962 /polyp/sample.c
parentb6b428e5cbfc2440f5950c0744e15bc4d84e6b31 (diff)
latency work
major main loop bugfix git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@154 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sample.c')
-rw-r--r--polyp/sample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/sample.c b/polyp/sample.c
index f4a80861..edfe1959 100644
--- a/polyp/sample.c
+++ b/polyp/sample.c
@@ -61,7 +61,7 @@ size_t pa_bytes_per_second(const struct pa_sample_spec *spec) {
uint32_t pa_bytes_to_usec(size_t length, const struct pa_sample_spec *spec) {
assert(spec);
- return (uint32_t) (((double) length /pa_frame_size(spec))/spec->rate*1000000);
+ return (uint32_t) (((double) length/pa_frame_size(spec)*1000000)/spec->rate);
}
int pa_sample_spec_valid(const struct pa_sample_spec *spec) {