aboutsummaryrefslogtreecommitdiffstats
path: root/test/software_volume.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/software_volume.c')
-rw-r--r--test/software_volume.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/software_volume.c b/test/software_volume.c
index 789fffe61..2357da672 100644
--- a/test/software_volume.c
+++ b/test/software_volume.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 The Music Player Daemon Project
+ * Copyright (C) 2003-2011 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -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;