diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-06-26 22:10:38 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-06-26 22:10:38 +0200 |
commit | e27e37b547b709d8ecf8be306c2b5137b7affad3 (patch) | |
tree | f783621e68b2eaf0458c2936ae8c7f8e9fe31566 /modules/pulse | |
parent | 1c76f5224e54277269f24e65dce8e9c2ddf2f3cf (diff) |
pulse: fix warnings on osx
Diffstat (limited to 'modules/pulse')
-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", |