aboutsummaryrefslogtreecommitdiffstats
path: root/test
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
parent572d8d0cc486dce64c0f6239cc27598068c1085d (diff)
downloadmpd-0847ca4ec2e137d0eaa235d653217e8a913187f8.tar.gz
mpd-0847ca4ec2e137d0eaa235d653217e8a913187f8.tar.xz
mpd-0847ca4ec2e137d0eaa235d653217e8a913187f8.zip
pcm_{mix,volume}: pass only sample_format to pcm_mix()
The other audio_format attributes are not used.
Diffstat (limited to 'test')
-rw-r--r--test/read_mixer.c2
-rw-r--r--test/read_tags.c2
-rw-r--r--test/run_decoder.c2
-rw-r--r--test/software_volume.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/read_mixer.c b/test/read_mixer.c
index 6d7ec3458..bf17e8f65 100644
--- a/test/read_mixer.c
+++ b/test/read_mixer.c
@@ -116,7 +116,7 @@ filter_plugin_by_name(G_GNUC_UNUSED const char *name)
bool
pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length,
- G_GNUC_UNUSED const struct audio_format *format,
+ G_GNUC_UNUSED enum sample_format format,
G_GNUC_UNUSED int volume)
{
assert(false);
diff --git a/test/read_tags.c b/test/read_tags.c
index 1d742e9ec..30981994c 100644
--- a/test/read_tags.c
+++ b/test/read_tags.c
@@ -53,7 +53,7 @@ idle_add(G_GNUC_UNUSED unsigned flags)
*/
bool
pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length,
- G_GNUC_UNUSED const struct audio_format *format,
+ G_GNUC_UNUSED enum sample_format format,
G_GNUC_UNUSED int volume)
{
return true;
diff --git a/test/run_decoder.c b/test/run_decoder.c
index 87dffa637..9959b6ded 100644
--- a/test/run_decoder.c
+++ b/test/run_decoder.c
@@ -57,7 +57,7 @@ idle_add(G_GNUC_UNUSED unsigned flags)
*/
bool
pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length,
- G_GNUC_UNUSED const struct audio_format *format,
+ G_GNUC_UNUSED enum sample_format format,
G_GNUC_UNUSED int volume)
{
return true;
diff --git a/test/software_volume.c b/test/software_volume.c
index 67dd1808e..1e068be41 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;