diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-25 07:27:29 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-25 07:27:29 +0200 |
commit | 1c29e992b9c7d17a4e0ca2c394fdf605706c961f (patch) | |
tree | b18a3aa23b54aa4ba4dade24d1ae2b15ec0e1185 /src/audio/player.c | |
parent | e6a1ff50654f251d6f7b495e46d78d48a0f2a754 (diff) |
Cleanup
Warnings about lost precision.
Diffstat (limited to 'src/audio/player.c')
-rw-r--r-- | src/audio/player.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/player.c b/src/audio/player.c index bf853e3f..de430b17 100644 --- a/src/audio/player.c +++ b/src/audio/player.c | |||
@@ -192,7 +192,7 @@ static enum iDecoderStatus decodeVorbis_Decoder_(iDecoder *d) { | |||
192 | int error; | 192 | int error; |
193 | int consumed; | 193 | int consumed; |
194 | d->vorbis = stb_vorbis_open_pushdata( | 194 | d->vorbis = stb_vorbis_open_pushdata( |
195 | constData_Block(input), size_Block(input), &consumed, &error, NULL); | 195 | constData_Block(input), (int) size_Block(input), &consumed, &error, NULL); |
196 | if (!d->vorbis) { | 196 | if (!d->vorbis) { |
197 | return needMoreInput_DecoderStatus; | 197 | return needMoreInput_DecoderStatus; |
198 | } | 198 | } |
@@ -225,7 +225,7 @@ static enum iDecoderStatus decodeVorbis_Decoder_(iDecoder *d) { | |||
225 | lock_Mutex(&d->input->mtx); | 225 | lock_Mutex(&d->input->mtx); |
226 | d->totalInputSize = size_Block(input); | 226 | d->totalInputSize = size_Block(input); |
227 | int error = 0; | 227 | int error = 0; |
228 | stb_vorbis *vrb = stb_vorbis_open_memory(constData_Block(input), size_Block(input), | 228 | stb_vorbis *vrb = stb_vorbis_open_memory(constData_Block(input), (int) size_Block(input), |
229 | &error, NULL); | 229 | &error, NULL); |
230 | if (vrb) { | 230 | if (vrb) { |
231 | d->totalSamples = stb_vorbis_stream_length_in_samples(vrb); | 231 | d->totalSamples = stb_vorbis_stream_length_in_samples(vrb); |