aboutsummaryrefslogtreecommitdiff
path: root/test/software_volume.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-10 08:11:04 +0200
committerMax Kellermann <max@duempel.org>2011-10-10 10:24:05 +0200
commit0847ca4ec2e137d0eaa235d653217e8a913187f8 (patch)
tree2d00b5b7e7700ee216890b83f86c6528090079a1 /test/software_volume.c
parent572d8d0cc486dce64c0f6239cc27598068c1085d (diff)
pcm_{mix,volume}: pass only sample_format to pcm_mix()
The other audio_format attributes are not used.
Diffstat (limited to 'test/software_volume.c')
-rw-r--r--test/software_volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/software_volume.c b/test/software_volume.c
index 67dd1808..1e068be4 100644
--- a/test/software_volume.c
+++ b/test/software_volume.c
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
audio_format_init(&audio_format, 48000, SAMPLE_FORMAT_S16, 2);
while ((nbytes = read(0, buffer, sizeof(buffer))) > 0) {
- if (!pcm_volume(buffer, nbytes, &audio_format,
+ if (!pcm_volume(buffer, nbytes, audio_format.format,
PCM_VOLUME_1 / 2)) {
g_printerr("pcm_volume() has failed\n");
return 2;