summaryrefslogtreecommitdiffstats
path: root/polyp/module-oss-mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/module-oss-mmap.c')
-rw-r--r--polyp/module-oss-mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/module-oss-mmap.c b/polyp/module-oss-mmap.c
index 800eaf25..30ff3ce6 100644
--- a/polyp/module-oss-mmap.c
+++ b/polyp/module-oss-mmap.c
@@ -198,7 +198,7 @@ static uint32_t sink_get_latency_cb(struct pa_sink *s) {
assert(s && u);
do_write(u);
- return pa_samples_usec(u->out_fill, &s->sample_spec);
+ return pa_bytes_to_usec(u->out_fill, &s->sample_spec);
}
int pa_module_init(struct pa_core *c, struct pa_module*m) {