aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_oss.c
diff options
context:
space:
mode:
authorKa Ho Ng <[email protected]>2021-11-10 12:31:35 +0800
committerMatthew Gregan <[email protected]>2021-11-10 19:00:28 +1300
commit1099a3007817fa34c1f91e4710ec046021147bed (patch)
tree3398ef317205417d55e08a1d99dad66e989855eb /src/cubeb_oss.c
parent8da61ef32d386ffd5f00f025578d4429523ca45b (diff)
downloadcubeb-1099a3007817fa34c1f91e4710ec046021147bed.tar.gz
cubeb-1099a3007817fa34c1f91e4710ec046021147bed.zip
cubeb_oss: Fix warnings
There were some type mismatch and signed/unsigned comparison warnings in the initialization path. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'src/cubeb_oss.c')
-rw-r--r--src/cubeb_oss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cubeb_oss.c b/src/cubeb_oss.c
index 6196a90..093da41 100644
--- a/src/cubeb_oss.c
+++ b/src/cubeb_oss.c
@@ -1071,7 +1071,7 @@ oss_stream_init(cubeb * context, cubeb_stream ** stream,
s->record.nfrags = OSS_NFRAGS;
s->record.nfr = latency_frames / OSS_NFRAGS;
s->record.bufframes = s->record.nfrags * s->record.nfr;
- int minnfr;
+ uint32_t minnfr;
oss_get_min_latency(context, *input_stream_params, &minnfr);
if (s->record.nfr < minnfr) {
s->record.nfr = minnfr;
@@ -1109,7 +1109,7 @@ oss_stream_init(cubeb * context, cubeb_stream ** stream,
s->play.frame_size = s->play.info.channels * (s->play.info.precision / 8);
s->play.nfrags = OSS_NFRAGS;
s->play.nfr = latency_frames / OSS_NFRAGS;
- int minnfr;
+ uint32_t minnfr;
oss_get_min_latency(context, *output_stream_params, &minnfr);
if (s->play.nfr < minnfr) {
s->play.nfr = minnfr;