pcm_{mix,volume}: pass only sample_format to pcm_mix()

The other audio_format attributes are not used.
This commit is contained in:
Max Kellermann
2011-10-10 08:11:04 +02:00
parent 572d8d0cc4
commit 0847ca4ec2
11 changed files with 23 additions and 22 deletions

View File

@@ -401,7 +401,7 @@ ao_filter_chunk(struct audio_output *ao, const struct music_chunk *chunk,
char *dest = pcm_buffer_get(&ao->cross_fade_buffer,
other_length);
memcpy(dest, other_data, other_length);
pcm_mix(dest, data, length, &ao->in_audio_format,
pcm_mix(dest, data, length, ao->in_audio_format.format,
1.0 - chunk->mix_ratio);
data = dest;