diff options
author | Max Kellermann <max@duempel.org> | 2008-11-02 16:57:16 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-02 16:57:16 +0100 |
commit | 5347cca29d0b6df888122d09ec05101d24a227be (patch) | |
tree | 97959c6751a7eafda228a949be58a378732b9695 /src/crossfade.c | |
parent | 8490c1b4cfbd35f049f36c3f85396a429a80d837 (diff) | |
download | mpd-5347cca29d0b6df888122d09ec05101d24a227be.tar.gz mpd-5347cca29d0b6df888122d09ec05101d24a227be.tar.xz mpd-5347cca29d0b6df888122d09ec05101d24a227be.zip |
music_pipe: no CamelCase
Rename all variables and struct members.
Diffstat (limited to '')
-rw-r--r-- | src/crossfade.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/crossfade.c b/src/crossfade.c index 27a1c3642..a65d304e8 100644 --- a/src/crossfade.c +++ b/src/crossfade.c @@ -58,9 +58,9 @@ void cross_fade_apply(struct music_chunk *a, const struct music_chunk *b, assert(current_chunk <= num_chunks); - size = b->chunkSize > a->chunkSize - ? a->chunkSize - : b->chunkSize; + size = b->length > a->length + ? a->length + : b->length; pcm_mix(a->data, b->data, @@ -68,14 +68,14 @@ void cross_fade_apply(struct music_chunk *a, const struct music_chunk *b, format, ((float)current_chunk) / num_chunks); - if (b->chunkSize > a->chunkSize) { + if (b->length > a->length) { /* the second buffer is larger than the first one: there is unmixed rest at the end. Copy it over. The output buffer API guarantees that there is enough room in a->data. */ - memcpy(a->data + a->chunkSize, - b->data + a->chunkSize, - b->chunkSize - a->chunkSize); - a->chunkSize = b->chunkSize; + memcpy(a->data + a->length, + b->data + a->length, + b->length - a->length); + a->length = b->length; } } |