00001 /* 00002 $Id: SndFormats.h 3246 2005-05-09 15:36:55Z leighsmith $ 00003 00004 Description: 00005 Enumerates and describes the various sound sample data formats which can processed 00006 by the MusicKit and SndKit. 00007 00008 Original Author: Stephen Brandon 00009 00010 Copyright (c) 1999 Stephen Brandon and the University of Glasgow 00011 Additions Copyright (c) 2004, The MusicKit Project. All rights reserved. 00012 00013 Legal Statement Covering Additions by Stephen Brandon and the University of Glasgow: 00014 00015 This framework and all source code supplied with it, except where specified, are 00016 Copyright Stephen Brandon and the University of Glasgow, 1999. You are free to use 00017 the source code for any purpose, including commercial applications, as long as you 00018 reproduce this notice on all such software. 00019 00020 Software production is complex and we cannot warrant that the Software will be error free. 00021 Further, we will not be liable to you if the Software is not fit for the purpose for which 00022 you acquired it, or of satisfactory quality. 00023 00024 WE SPECIFICALLY EXCLUDE TO THE FULLEST EXTENT PERMITTED BY THE COURTS ALL WARRANTIES IMPLIED 00025 BY LAW INCLUDING (BUT NOT LIMITED TO) IMPLIED WARRANTIES OF QUALITY, FITNESS FOR A PARTICULAR 00026 PURPOSE, AND NON-INFRINGEMENT OF THIRD PARTIES RIGHTS. 00027 00028 If a court finds that we are liable for death or personal injury caused by our negligence our 00029 liability shall be unlimited. 00030 00031 WE SHALL HAVE NO LIABILITY TO YOU FOR LOSS OF PROFITS, LOSS OF CONTRACTS, LOSS OF DATA, 00032 LOSS OF GOODWILL, OR WORK STOPPAGE, WHICH MAY ARISE FROM YOUR POSSESSION OR USE OF THE SOFTWARE 00033 OR ASSOCIATED DOCUMENTATION. WE SHALL HAVE NO LIABILITY IN RESPECT OF ANY USE OF THE SOFTWARE 00034 OR THE ASSOCIATED DOCUMENTATION WHERE SUCH USE IS NOT IN COMPLIANCE WITH THE TERMS AND CONDITIONS 00035 OF THIS AGREEMENT. 00036 00037 Legal Statement Covering Additions by The MusicKit Project: 00038 00039 Permission is granted to use and modify this code for commercial and 00040 non-commercial purposes so long as the author attribution and copyright 00041 messages remain intact and accompany all relevant code. 00042 00043 */ 00051 #ifndef __SNDFORMATS__ 00052 #define __SNDFORMATS__ 00053 00091 typedef enum { 00092 SND_FORMAT_UNSPECIFIED = 0, 00093 SND_FORMAT_MULAW_8 = 1, /* u-law encoding */ 00094 SND_FORMAT_LINEAR_8 = 2, /* Linear 8 bits */ 00095 SND_FORMAT_LINEAR_16 = 3, /* Linear 16 bits */ 00096 SND_FORMAT_LINEAR_24 = 4, /* Linear 24 bits */ 00097 SND_FORMAT_LINEAR_32 = 5, /* Linear 32 bits */ 00098 SND_FORMAT_FLOAT = 6, /* IEEE Floating Point 32 bits */ 00099 SND_FORMAT_DOUBLE = 7, /* Floating Point 64 bits, could even be IEEE 80 bit Floating Point */ 00100 SND_FORMAT_INDIRECT = 8, /* Fragmented */ 00101 SND_FORMAT_NESTED = 9, 00102 SND_FORMAT_DSP_CORE = 10, 00103 SND_FORMAT_DSP_DATA_8 = 11, 00104 SND_FORMAT_DSP_DATA_16 = 12, 00105 SND_FORMAT_DSP_DATA_24 = 13, 00106 SND_FORMAT_DSP_DATA_32 = 14, 00107 SND_FORMAT_DISPLAY = 16, 00108 SND_FORMAT_MULAW_SQUELCH = 17, 00109 SND_FORMAT_EMPHASIZED = 18, 00110 SND_FORMAT_COMPRESSED = 19, /* Julius O. Smith III's SoundKit compressed format */ 00111 SND_FORMAT_COMPRESSED_EMPHASIZED = 20, /* Julius O. Smith III's SoundKit compressed format */ 00112 SND_FORMAT_DSP_COMMANDS = 21, /* MC56001 DSP instruction opcodes */ 00113 SND_FORMAT_DSP_COMMANDS_SAMPLES = 22, /* audio data in a format suitable for MC56001 DSP use? */ 00114 SND_FORMAT_ADPCM_G721 = 23, /* GSM compressed format */ 00115 SND_FORMAT_ADPCM_G722 = 24, /* GSM compressed format */ 00116 SND_FORMAT_ADPCM_G723_3 = 25, /* GSM compressed format */ 00117 SND_FORMAT_ADPCM_G723_5 = 26, /* GSM compressed format */ 00118 SND_FORMAT_ALAW_8 = 27, /* a-law encoding */ 00119 SND_FORMAT_AES = 28, /* a format specified by the Audio Engineering Society? */ 00120 SND_FORMAT_DELTA_MULAW_8 = 29, 00121 SND_FORMAT_MP3 = 30, /* MPEG-1 Layer 3 audio format */ 00122 SND_FORMAT_AAC = 31, /* MPEG-4 Advanced Audio Coder */ 00123 SND_FORMAT_AC3 = 32, /* Dolby AC3 A/52 encoding */ 00124 SND_FORMAT_VORBIS = 33, /* Ogg/Vorbis compressed format */ 00125 } SndSampleFormat; 00126 00127 #endif