fix off-by-one error in error message array. add a comment.

This commit is contained in:
mrg 1999-09-27 05:06:10 +00:00
parent 86ee174f0b
commit cc78535b32

View File

@ -1,4 +1,4 @@
/* $NetBSD: audio.c,v 1.8 1999/09/13 17:35:33 tron Exp $ */
/* $NetBSD: audio.c,v 1.9 1999/09/27 05:06:10 mrg Exp $ */
/*
* Copyright (c) 1999 Matthew R. Green
@ -115,6 +115,11 @@ struct {
{ AUDIO_FILE_ENCODING_LINEAR_24, AUDIO_ENCODING_ULINEAR_BE, 24 },
{ AUDIO_FILE_ENCODING_LINEAR_32, AUDIO_ENCODING_ULINEAR_BE, 32 },
#if 0
/*
* we should make some of these available. the, eg ultrasparc, port
* can use the VIS instructions (if available) do do some of these
* mpeg ones.
*/
{ AUDIO_FILE_ENCODING_FLOAT, AUDIO_ENCODING_ULAW, 32 },
{ AUDIO_FILE_ENCODING_DOUBLE, AUDIO_ENCODING_ULAW, 64 },
{ AUDIO_FILE_ENCODING_ADPCM_G721, AUDIO_ENCODING_ULAW, 4 },
@ -351,11 +356,12 @@ decode_encoding(arg, encp)
}
const char *const audio_errlist[] = {
"no audio entry",
"short header",
"unsupported WAV format",
"bad (unsupported) WAV PCM format",
"no WAV audio data",
"error zero", /* nothing? */
"no audio entry", /* AUDIO_ENOENT */
"short header", /* AUDIO_ESHORTHDR */
"unsupported WAV format", /* AUDIO_EWAVUNSUPP */
"bad (unsupported) WAV PCM format", /* AUDIO_EWAVBADPCM */
"no WAV audio data", /* AUDIO_EWAVNODATA */
};
const char *