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

This commit is contained in:
Max Kellermann 2011-10-20 02:11:40 +02:00
parent 725e48fce4
commit b7d5652bf6
5 changed files with 5 additions and 5 deletions

View File

@ -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)
{ {

View File

@ -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);

View File

@ -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)
{ {

View File

@ -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)
{ {

View File

@ -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)
{ {