aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pcm_volume.c2
-rw-r--r--src/pcm_volume.h2
-rw-r--r--test/read_mixer.c2
-rw-r--r--test/read_tags.c2
-rw-r--r--test/run_decoder.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/pcm_volume.c b/src/pcm_volume.c
index 7d9d2fe42..dd5f6f90c 100644
--- a/src/pcm_volume.c
+++ b/src/pcm_volume.c
@@ -138,7 +138,7 @@ pcm_volume_change_32(int32_t *buffer, unsigned num_samples, int volume)
}
bool
-pcm_volume(void *buffer, int length,
+pcm_volume(void *buffer, size_t length,
enum sample_format format,
int volume)
{
diff --git a/src/pcm_volume.h b/src/pcm_volume.h
index 3fd722e77..741c4db40 100644
--- a/src/pcm_volume.h
+++ b/src/pcm_volume.h
@@ -68,7 +68,7 @@ pcm_volume_dither(void)
* @return true on success, false if the audio format is not supported
*/
bool
-pcm_volume(void *buffer, int length,
+pcm_volume(void *buffer, size_t length,
enum sample_format format,
int volume);
diff --git a/test/read_mixer.c b/test/read_mixer.c
index bf17e8f65..0a0719460 100644
--- a/test/read_mixer.c
+++ b/test/read_mixer.c
@@ -115,7 +115,7 @@ filter_plugin_by_name(G_GNUC_UNUSED const char *name)
}
bool
-pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length,
+pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED size_t length,
G_GNUC_UNUSED enum sample_format format,
G_GNUC_UNUSED int volume)
{
diff --git a/test/read_tags.c b/test/read_tags.c
index 30981994c..86d508a5c 100644
--- a/test/read_tags.c
+++ b/test/read_tags.c
@@ -52,7 +52,7 @@ idle_add(G_GNUC_UNUSED unsigned flags)
* No-op dummy.
*/
bool
-pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length,
+pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED size_t length,
G_GNUC_UNUSED enum sample_format format,
G_GNUC_UNUSED int volume)
{
diff --git a/test/run_decoder.c b/test/run_decoder.c
index 9959b6ded..01bf66aae 100644
--- a/test/run_decoder.c
+++ b/test/run_decoder.c
@@ -56,7 +56,7 @@ idle_add(G_GNUC_UNUSED unsigned flags)
* No-op dummy.
*/
bool
-pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED int length,
+pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED size_t length,
G_GNUC_UNUSED enum sample_format format,
G_GNUC_UNUSED int volume)
{