Commit b7d5652b authored by Max Kellermann's avatar Max Kellermann

pcm_volume: "length" is a "size_t", not "int"

parent 725e48fc
...@@ -138,7 +138,7 @@ pcm_volume_change_32(int32_t *buffer, unsigned num_samples, int volume) ...@@ -138,7 +138,7 @@ pcm_volume_change_32(int32_t *buffer, unsigned num_samples, int volume)
} }
bool bool
pcm_volume(void *buffer, int length, pcm_volume(void *buffer, size_t length,
enum sample_format format, enum sample_format format,
int volume) int volume)
{ {
......
...@@ -68,7 +68,7 @@ pcm_volume_dither(void) ...@@ -68,7 +68,7 @@ pcm_volume_dither(void)
* @return true on success, false if the audio format is not supported * @return true on success, false if the audio format is not supported
*/ */
bool bool
pcm_volume(void *buffer, int length, pcm_volume(void *buffer, size_t length,
enum sample_format format, enum sample_format format,
int volume); int volume);
......
...@@ -115,7 +115,7 @@ filter_plugin_by_name(G_GNUC_UNUSED const char *name) ...@@ -115,7 +115,7 @@ filter_plugin_by_name(G_GNUC_UNUSED const char *name)
} }
bool 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 enum sample_format format,
G_GNUC_UNUSED int volume) G_GNUC_UNUSED int volume)
{ {
......
...@@ -52,7 +52,7 @@ idle_add(G_GNUC_UNUSED unsigned flags) ...@@ -52,7 +52,7 @@ idle_add(G_GNUC_UNUSED unsigned flags)
* No-op dummy. * No-op dummy.
*/ */
bool 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 enum sample_format format,
G_GNUC_UNUSED int volume) G_GNUC_UNUSED int volume)
{ {
......
...@@ -56,7 +56,7 @@ idle_add(G_GNUC_UNUSED unsigned flags) ...@@ -56,7 +56,7 @@ idle_add(G_GNUC_UNUSED unsigned flags)
* No-op dummy. * No-op dummy.
*/ */
bool 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 enum sample_format format,
G_GNUC_UNUSED int volume) G_GNUC_UNUSED int volume)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment