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
+2 -2
View File
@@ -139,7 +139,7 @@ pcm_volume_change_32(int32_t *buffer, unsigned num_samples, int volume)
bool
pcm_volume(void *buffer, int length,
const struct audio_format *format,
enum sample_format format,
int volume)
{
if (volume == PCM_VOLUME_1)
@@ -150,7 +150,7 @@ pcm_volume(void *buffer, int length,
return true;
}
switch (format->format) {
switch (format) {
case SAMPLE_FORMAT_S8:
pcm_volume_change_8((int8_t *)buffer, length, volume);
return true;