summaryrefslogtreecommitdiff
path: root/src/pcm_utils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-10 14:03:33 +0200
committerMax Kellermann <max@duempel.org>2008-10-10 14:03:33 +0200
commit6101dc6c768b09dbcdc1840a84b619a5a6a20129 (patch)
treeaf2369299cff4af045fe8717584a29b6234aac51 /src/pcm_utils.c
parent817a033f5591fefb842e355ef211d09e855661ef (diff)
audio_format: unsigned integers
"bits" and "channels" cannot be negative.
Diffstat (limited to 'src/pcm_utils.c')
-rw-r--r--src/pcm_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcm_utils.c b/src/pcm_utils.c
index d60fcce66..9274c2eb6 100644
--- a/src/pcm_utils.c
+++ b/src/pcm_utils.c
@@ -113,7 +113,7 @@ void pcm_volumeChange(char *buffer, int bufferSize,
break;
default:
- FATAL("%i bits not supported by pcm_volumeChange!\n",
+ FATAL("%u bits not supported by pcm_volumeChange!\n",
format->bits);
}
}
@@ -188,7 +188,7 @@ static void pcm_add(char *buffer1, const char *buffer2, size_t size,
break;
default:
- FATAL("%i bits not supported by pcm_add!\n", format->bits);
+ FATAL("%u bits not supported by pcm_add!\n", format->bits);
}
}
@@ -436,7 +436,7 @@ pcm_convert_24_to_16(int16_t *out, const int32_t *in,
}
}
-static const char *pcm_convertTo16bit(int8_t bits, const char *inBuffer,
+static const char *pcm_convertTo16bit(uint8_t bits, const char *inBuffer,
size_t inSize, size_t *outSize)
{
static char *buf;