1 /*------------ Telecommunications & Signal Processing Lab -------------- 2 McGill University 3 4 Routine: 5 AFmsg.h 6 7 Description: 8 Message texts for the TSP audio file routines. 9 10 Author / revision: 11 P. Kabal Copyright (C) 2004 12 $Revision: 1.42 $ $Date: 2004/03/29 01:49:14 $ 13 14 ----------------------------------------------------------------------*/ 15 16 #ifndef AFmsg_h_ 17 #define AFmsg_h_ 18 19 /* File parameter printout formats */ 20 #define AFM_Headerless "Headerless audio file" 21 #define AFMF_Desc " Description: %s\n" 22 #define AFMF_NumSampUnk " Number of samples : <unknown>" 23 #define AFMF_NumSamp " Number of samples : %ld" 24 #define AFMF_SFreq " Sampling frequency: %.6g Hz\n" 25 #define AFMF_NumChan " Number of channels: %ld" 26 27 /* Error message text */ 28 29 /* Warning messages for parameter setting routines */ 30 /* AFsetFileType 31 AFsetHinfo 32 AFsetNHpar 33 AFsetSpeaker 34 */ 35 #define AFM_BadFormat "Invalid format keyword" 36 #define AFM_BadFType "Invalid file type" 37 /* AFM_BadNChan */ 38 #define AFM_BadSFactor "Invalid scale factor" 39 #define AFM_BadSFreq "Invalid sampling frequency" 40 #define AFM_BadSpkr "Invalid loudspeaker location" 41 #define AFM_BadStart "Invalid start value" 42 #define AFM_BadSwap "Invalid swap keyword" 43 #define AFM_DupSpkr "Duplicate loudspeaker position" 44 #define AFM_LongInfo "Information string too long" 45 #define AFM_TooManyPar "Too many parameters" 46 #define AFM_XSpkr "Too many speaker locations" 47 48 /* Input audio file: Error messages */ 49 #define AFM_BadDLen "Invalid data length" 50 #define AFM_BadHeadLen "Invalid header length" 51 #define AFM_BadNChan "Invalid number of channels" 52 #define AFM_BadNSamp "Invalid number of samples" 53 /* AFM_BadSpkr */ 54 #define AFM_DataErr "Data format error" 55 #define AFM_ErrLoDNSamp "Error, no. samples less than data length" 56 #define AFM_ErrHiDLen "Error, data length greater than file length" 57 #define AFM_ErrHiNSamp "Error, no. samples greater than data length" 58 #define AFM_NoNSamp "Unable to determine number of samples" 59 #define AFM_OpenRErr "Error opening input audio file" 60 #define AFM_RAuto "Input audio file must be random access for \"auto\"" 61 #define AFM_RRAccess "Input audio file must be random access" 62 #define AFM_UnkFType "Unknown audio file type" 63 #define AFM_UnsupFType "Unsupported audio file type" 64 65 /* Output audio file: Error messages */ 66 #define AFM_BadDataC "Invalid data format code" 67 #define AFM_BadFTypeC "Invalid output audio file type code" 68 /* AFM_BadNChan */ 69 #define AFM_BadNFrame "Invalid number of sample frames" 70 #define AFM_OpenWErr "Error opening output audio file" 71 72 /* I/O errors */ 73 #define AFM_FilePosErr "File positioning error" 74 #define AFM_LongLine "Input line too long" 75 #define AFM_NoFilePos "Cannot determine file position" 76 #define AFM_MoveBack "Cannot move back in file; File must be random access" 77 #define AFM_ReadErr "Read error" 78 #define AFM_ReadErrOffs "Error while reading, sample offset:" 79 #define AFM_ReopenErr "Cannot reopen file as text file" 80 #define AFM_UEoF "Unexpected end-of-file" 81 #define AFM_UEoFOffs "Unexpected end-of-file, sample offset:" 82 #define AFM_UpdHeadErr "Error updating file header" 83 #define AFM_WriteErr "Write error" 84 85 /* Warning messages */ 86 #define AFM_BadNbS "Invalid bits/sample" 87 #define AFM_BadSRate "Invalid \"sample_rate\" record" 88 #define AFM_BadSpkrConfig "Invalid speaker configuration" 89 #define AFM_FixLoNSamp "Fixup, no. samples less than data length" 90 #define AFM_FixHiNSamp "Fixup, no. samples greater than data length" 91 #define AFM_FixHiDLen "Fixup, data length greater than file length" 92 #define AFM_InaNbS "Inappropriate bits/sample setting" 93 #define AFM_MisSRate "Sampling frequency / \"sample_rate\" record mismatch" 94 #define AFM_NPSFreq "Non-positive sampling frequency" 95 #define AFM_NSampNChan "No. samples not a multiple of no. channels" 96 #define AFM_NoIEEE "Host does not use IEEE float format" 97 #define AFM_NoRBinMode "Cannot set input to binary mode" 98 #define AFM_NoRTextMode "Cannot set input to text mode" 99 #define AFM_NoWBinMode "Cannot set output to binary mode" 100 #define AFM_NoWTextMode "Cannot set output to text mode" 101 #define AFM_NonIntNSamp "Fixup, non-integer number of samples" 102 #define AFM_OClip "Output data clipped" 103 #define AFM_TruncInfo "Header information string too long, truncated" 104 105 /* Informational message formats */ 106 #define AFMF_BadSFreq "%s Invalid sampling frequency: \"%g\"; using %g" 107 #define AFMF_InvNbS "%s Invalid bits/sample: %d; using %d" 108 #define AFMF_NSampNChan "%s %ld samples; %ld channels" 109 #define AFMF_NClip "%s %ld data values clipped" 110 111 /* Error/warning messages for different audio file types */ 112 #define AFM_AIFF_BadHead "Invalid AIFF/AIFF-C file header" 113 #define AFM_AIFF_BadId "Invalid AIFF/AIFF-C file identifier" 114 #define AFM_AIFF_BadVer "AIFF-C file: Unrecognized version number" 115 #define AFM_AIFF_BadSpkr "AIFF/AIFF-C file: Non-standard loudspeaker configuration" 116 #define AFM_AIFF_BadSize "AIFF/AIFF-C file: Header stucture size mismatch" 117 #define AFM_AIFF_FixCOMM "AIFF/AIFF-C file: Fixup for invalid COMM chunk size" 118 #define AFM_AIFF_FixFORM "AIFF/AIFF-C file: Fixup for invalid FORM chunk size" 119 #define AFM_AIFF_NoSSND "AIFF/AIFF-C file: Missing SSND chunk" 120 #define AFM_AIFF_UnsComp "AIFF-C file: Unsupported compression type" 121 #define AFM_AIFF_UnsData "AIFF/AIFF-C file: Unsupported data format" 122 #define AFM_AIFF_UnsSSize "AIFF/AIFF-C file: Unsupported sample size" 123 #define AFM_AIFF_WRAccess "AIFF/AIFF-C file: Output file must be random access" 124 #define AFMF_AIFF_InvNbS "%s AIFF/AIFF-C file: Invalid bits/sample: %d; using %d" 125 126 #define AFM_AU_BadId "Invalid AU audio file identifier" 127 #define AFM_AU_BadSRate "AU audio file: Invalid AFsp sample_rate record" 128 #define AFM_AU_UnsData "AU audio file: Unsupported data format" 129 130 #define AFM_BL_BadId "Invalid SPPACK file identifier" 131 #define AFM_BL_UnsComp "SPPACK file: Unsupported companding option" 132 #define AFM_BL_UnsData "SPPACK file: Unsupported data format" 133 #define AFM_BL_UnsDomain "SPPACK file: Unsupported domain" 134 #define AFM_BL_UnsWLen "SPPACK file: Unsupported data word length" 135 136 #define AFM_ES_BadId "Invalid ESPS file identifier" 137 #define AFM_ES_IdMatch "ESPS file: Identifier values do not match" 138 #define AFM_ES_NoSFreq "ESPS file: Missing sampling frequency" 139 #define AFM_ES_UnsData "ESPS file: Unsupported data format" 140 #define AFM_ES_UnsEncod "ESPS file: Unsupported data encoding" 141 #define AFM_ES_UnsFea "ESPS file: Unsupported feature file subtype" 142 #define AFM_ES_UnsType "ESPS file: Unsupported file type code" 143 144 #define AFM_NH_InvSwap "Headerless file: Invalid data format" 145 #define AFM_NH_NoFormat "Headerless file: Data format not specified" 146 #define AFM_NH_UnsData "Headerless file: Unsupported data type" 147 148 #define AFM_NS_BadHead "Invalid CSL NSP file header" 149 #define AFM_NS_BadId "Invalid CSL NSP file identifier" 150 #define AFM_NS_BadHEDR "CSL NSP file: Invalid HEDR/HDR8 chunk size" 151 #define AFM_NS_BadFORM "CSL NSP file: Invalid FORM-DS16 block size" 152 #define AFM_NS_FixFORM "CSL NSP file: Fixup for invalid FORM-DS16 block size" 153 154 #define AFM_INRS_BadId "Invalid INRS-Telecom file identifier" 155 156 #define AFM_SF_BadId "Invalid IRCAM soundfile identifier" 157 #define AFM_SF_UnsData "IRCAM soundfile: Unsupported data format" 158 159 #define AFM_SP_BadId "Invalid NIST SPHERE audio file identifier" 160 #define AFM_SP_BadHLen "NIST SPHERE audio file: Invalid header length" 161 #define AFM_SP_Damaged "Damaged NIST SPHERE audio file" 162 #define AFM_SP_NoInter "NIST SPHERE audio file: Channels may not be interleaved" 163 #define AFM_SP_UnsByte "NIST SPHERE audio file: Unsupported byte format" 164 #define AFM_SP_UnsData "NIST SPHERE audio file: Unsupported data format" 165 #define AFM_SP_UnsMulaw "NIST SPHERE audio file: Invalid mu-law word length" 166 #define AFM_SP_UnsPCM "NIST SPHERE audio file: Unsupported PCM word length" 167 168 #define AFMF_SP_NoMatch "%s No \"%s\" record in NIST SPHERE audio file header" 169 #define AFMF_SP_BadField \ 170 "%s NIST SPHERE audio file: Invalid field in \"%s\" record" 171 172 #define AFM_SW_AscCmplx "Comdisco SPW Signal file: Complex ASCII data not supported" 173 #define AFM_SW_BadId "Invalid SPW Signal file identifier" 174 #define AFM_SW_BadNSamp "SPW Signal file: Invalid number of samples" 175 #define AFM_SW_BadSFreq "SPW Signal file: Invalid sampling frequency" 176 #define AFM_SW_BadSTime "SPW Signal file: Invalid starting time" 177 #define AFM_SW_LongHead "SPW Signal file: Header too long" 178 #define AFM_SW_NZSTime "SPW Signal file: Non-zero starting time" 179 #define AFM_SW_NoData "SPW Signal file: Data type not specified" 180 #define AFM_SW_NoSFreq "SPW Signal file: Sampling frequency not specified" 181 #define AFM_SW_UnkCOM "SPW Signal file: Unknown COMMON_INFO field" 182 #define AFM_SW_UnkKey "SPW Signal file: Unknown keyword" 183 #define AFM_SW_UnkSys "SPW Signal file: Unknown system type" 184 #define AFM_SW_UnsCmplx "SPW Signal file: Unsupported complex format" 185 #define AFM_SW_UnsData "SPW Signal file: Unsupported data type" 186 #define AFM_SW_UnsDInfo "SPW Signal file: Unsupported DATA_INFO record" 187 #define AFM_SW_UnsFixP "SPW Signal file: Unsupported fixed point format" 188 189 #define AFM_TA_BadId "Invalid Text file identifier" 190 #define AFM_TA_LongHead "Text file: Header too long" 191 #define AFM_TA_NoNSamp "Text file: Missing sampling frequency" 192 193 #define AFM_WV_BadHead "Invalid WAVE file header" 194 #define AFM_WV_BadAlaw "WAVE file: Invalid A-law data size" 195 #define AFM_WV_BadBlock "WAVE file: Invalid block align value" 196 #define AFM_WV_BadBytesSec \ 197 "WAVE file: Inconsistent header value AvgBytesPerSec ignored" 198 #define AFM_WV_BadFACT "WAVE file: Invalid fact chunk size" 199 #define AFM_WV_BadFloat "WAVE file: Invalid float data size" 200 #define AFM_WV_BadHeader "Malformed WAVE file header" 201 #define AFM_WV_BadId "Invalid WAVE file identifier" 202 #define AFM_WV_BadMulaw "WAVE file: Invalid mu-law data size" 203 #define AFM_WV_BadfmtEx "WAVE file: Invalid fmt (EXTENSIBLE) chunk" 204 #define AFM_WV_BadfmtSize "WAVE file: Invalid fmt chunk size" 205 #define AFM_WV_BadNbS "WAVE file: Invalid bits/sample" 206 #define AFM_WV_BadNChan "WAVE file: Invalid number of channels" 207 #define AFM_WV_BadRIFF "WAVE file: Invalid RIFF chunk size" 208 #define AFM_WV_BadSpkr "WAVE file: Invalid speaker order" 209 #define AFM_WV_BadSize "WAVE file: Header stucture size mismatch" 210 #define AFM_WV_BadSS "WAVE file: Inconsistent sample size" 211 #define AFM_WV_FixRIFF "WAVE file: Fixup for invalid RIFF chunk size" 212 #define AFM_WV_UnkChannel "WAVE file: Unknown Channel/Speaker combination" 213 #define AFM_WV_UnsDSize "WAVE file: Unsupported PCM data size" 214 #define AFM_WV_UnsData "WAVE file: Unsupported data format" 215 #define AFM_WV_WRAccess "WAVE file: Output file must be random access" 216 #define AFMF_WV_InvNbS "%s WAVE file: Invalid bits/sample: %d; using %d" 217 218 #endif /* AFmsg_h_ */ 219