diff options
author | Max Kellermann <max@duempel.org> | 2011-10-19 22:06:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-10-19 22:14:43 +0200 |
commit | 9716c3a30ea9d01a297a1ffc52f95049054c707c (patch) | |
tree | be754b52cc066638567a0decfae2e26c93568327 /src/pcm_channels.c | |
parent | c4c44c4445a8c3ac148805d9c2ef61e2a6d8554a (diff) | |
download | mpd-9716c3a30ea9d01a297a1ffc52f95049054c707c.tar.gz mpd-9716c3a30ea9d01a297a1ffc52f95049054c707c.tar.xz mpd-9716c3a30ea9d01a297a1ffc52f95049054c707c.zip |
pcm_{channels,resample}: pass channel count as integer, not uint8_t
Reduces number of implicit integer conversions.
Diffstat (limited to '')
-rw-r--r-- | src/pcm_channels.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pcm_channels.c b/src/pcm_channels.c index 5e648f1ae..31fab5e20 100644 --- a/src/pcm_channels.c +++ b/src/pcm_channels.c @@ -71,8 +71,8 @@ pcm_convert_channels_16_n_to_2(int16_t *dest, const int16_t * pcm_convert_channels_16(struct pcm_buffer *buffer, - uint8_t dest_channels, - uint8_t src_channels, const int16_t *src, + unsigned dest_channels, + unsigned src_channels, const int16_t *src, size_t src_size, size_t *dest_size_r) { assert(src_size % (sizeof(*src) * src_channels) == 0); @@ -144,8 +144,8 @@ pcm_convert_channels_24_n_to_2(int32_t *dest, const int32_t * pcm_convert_channels_24(struct pcm_buffer *buffer, - uint8_t dest_channels, - uint8_t src_channels, const int32_t *src, + unsigned dest_channels, + unsigned src_channels, const int32_t *src, size_t src_size, size_t *dest_size_r) { assert(src_size % (sizeof(*src) * src_channels) == 0); @@ -212,8 +212,8 @@ pcm_convert_channels_32_n_to_2(int32_t *dest, const int32_t * pcm_convert_channels_32(struct pcm_buffer *buffer, - uint8_t dest_channels, - uint8_t src_channels, const int32_t *src, + unsigned dest_channels, + unsigned src_channels, const int32_t *src, size_t src_size, size_t *dest_size_r) { assert(src_size % (sizeof(*src) * src_channels) == 0); |