summaryrefslogtreecommitdiff
path: root/src/audio/player.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-10-16 08:22:37 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-10-16 08:22:37 +0300
commitdeea90b7255455b52723de6195fbf86b156dc3ce (patch)
treeb3f114cb74089a90e2b862ccd9bed1a338b8a74a /src/audio/player.c
parent6f4f512e2e6b84c0d9770281187526885cdc40af (diff)
Player: Fixed build with older version of mpg123
Diffstat (limited to 'src/audio/player.c')
-rw-r--r--src/audio/player.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/player.c b/src/audio/player.c
index c98e2837..e0003168 100644
--- a/src/audio/player.c
+++ b/src/audio/player.c
@@ -297,7 +297,7 @@ enum iDecoderStatus decodeMpeg_Decoder_(iDecoder *d) {
297 while (size_Array(&d->pendingOutput) < d->output.count) { 297 while (size_Array(&d->pendingOutput) < d->output.count) {
298 int16_t buffer[512]; 298 int16_t buffer[512];
299 size_t bytesRead = 0; 299 size_t bytesRead = 0;
300 const int rc = mpg123_read(d->mpeg, buffer, sizeof(buffer), &bytesRead); 300 const int rc = mpg123_read(d->mpeg, (uint8_t *) buffer, sizeof(buffer), &bytesRead);
301 const float gain = d->gain; 301 const float gain = d->gain;
302 for (size_t i = 0; i < bytesRead / 2; i++) { 302 for (size_t i = 0; i < bytesRead / 2; i++) {
303 buffer[i] *= gain; 303 buffer[i] *= gain;