summaryrefslogtreecommitdiffstats
path: root/interleave.c
diff options
context:
space:
mode:
Diffstat (limited to 'interleave.c')
-rw-r--r--interleave.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/interleave.c b/interleave.c
index e503671..499d988 100644
--- a/interleave.c
+++ b/interleave.c
@@ -43,7 +43,7 @@ static void interleave32(void *_dst, size_t dstr, const void *_src, size_t sstr,
interleave_func_t get_interleave_func(sa_pcm_format_t f) {
- static const interleave_func_t funcs[SA_PCM_FORMAT_MAX] = {
+ static const interleave_func_t funcs[_SA_PCM_FORMAT_MAX] = {
[SA_PCM_FORMAT_U8] = interleave8,
[SA_PCM_FORMAT_ULAW] = interleave8,
[SA_PCM_FORMAT_ALAW] = interleave8,
@@ -57,7 +57,7 @@ interleave_func_t get_interleave_func(sa_pcm_format_t f) {
[SA_PCM_FORMAT_FLOAT32_BE] = interleave32,
};
- sa_assert(f < SA_PCM_FORMAT_MAX);
+ sa_assert(f < _SA_PCM_FORMAT_MAX);
return funcs[f];
}