diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pulse/player.c | 2 | ||||
-rw-r--r-- | modules/pulse/recorder.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/pulse/player.c b/modules/pulse/player.c index d84b0e5..480ba6a 100644 --- a/modules/pulse/player.c +++ b/modules/pulse/player.c @@ -100,7 +100,7 @@ int pulse_player_alloc(struct auplay_st **stp, const struct auplay *ap, ss.rate = prm->srate; attr.maxlength = (uint32_t)-1; - attr.tlength = pa_usec_to_bytes(prm->ptime * 1000, &ss); + attr.tlength = (uint32_t)pa_usec_to_bytes(prm->ptime * 1000, &ss); attr.prebuf = (uint32_t)-1; attr.minreq = (uint32_t)-1; attr.fragsize = (uint32_t)-1; diff --git a/modules/pulse/recorder.c b/modules/pulse/recorder.c index 78c622d..64df6c4 100644 --- a/modules/pulse/recorder.c +++ b/modules/pulse/recorder.c @@ -110,7 +110,7 @@ int pulse_recorder_alloc(struct ausrc_st **stp, const struct ausrc *as, attr.tlength = (uint32_t)-1; attr.prebuf = (uint32_t)-1; attr.minreq = (uint32_t)-1; - attr.fragsize = pa_usec_to_bytes(prm->ptime * 1000, &ss); + attr.fragsize = (uint32_t)pa_usec_to_bytes(prm->ptime * 1000, &ss); st->s = pa_simple_new(NULL, "Baresip", |