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)
}
bool
pcm_volume(void *buffer, int length,
pcm_volume(void *buffer, size_t length,
enum sample_format format,
int volume)
{
......
......@@ -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);
......
......@@ -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)
{
......
......@@ -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)
{
......
......@@ -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)
{
......
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