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

View File

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