aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 3a378b069..1507d11b5 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -211,15 +211,15 @@ playChunk(struct music_chunk *chunk, const struct audio_format *format,
double sizeToTime)
{
pc.elapsedTime = chunk->times;
- pc.bitRate = chunk->bitRate;
+ pc.bitRate = chunk->bit_rate;
- pcm_volume(chunk->data, chunk->chunkSize,
+ pcm_volume(chunk->data, chunk->length,
format, pc.softwareVolume);
- if (!playAudio(chunk->data, chunk->chunkSize))
+ if (!playAudio(chunk->data, chunk->length))
return -1;
- pc.totalPlayTime += sizeToTime * chunk->chunkSize;
+ pc.totalPlayTime += sizeToTime * chunk->length;
return 0;
}