00001 /****************************************************************************** 00002 LEGAL: 00003 This framework and all source code supplied with it, except where specified, are Copyright Stephen Brandon and the University of Glasgow, 1999. You are free to use the source code for any purpose, including commercial applications, as long as you reproduce this notice on all such software. 00004 00005 Software production is complex and we cannot warrant that the Software will be error free. Further, we will not be liable to you if the Software is not fit for the purpose for which you acquired it, or of satisfactory quality. 00006 00007 WE SPECIFICALLY EXCLUDE TO THE FULLEST EXTENT PERMITTED BY THE COURTS ALL WARRANTIES IMPLIED BY LAW INCLUDING (BUT NOT LIMITED TO) IMPLIED WARRANTIES OF QUALITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF THIRD PARTIES RIGHTS. 00008 00009 If a court finds that we are liable for death or personal injury caused by our negligence our liability shall be unlimited. 00010 00011 WE SHALL HAVE NO LIABILITY TO YOU FOR LOSS OF PROFITS, LOSS OF CONTRACTS, LOSS OF DATA, LOSS OF GOODWILL, OR WORK STOPPAGE, WHICH MAY ARISE FROM YOUR POSSESSION OR USE OF THE SOFTWARE OR ASSOCIATED DOCUMENTATION. WE SHALL HAVE NO LIABILITY IN RESPECT OF ANY USE OF THE SOFTWARE OR THE ASSOCIATED DOCUMENTATION WHERE SUCH USE IS NOT IN COMPLIANCE WITH THE TERMS AND CONDITIONS OF THIS AGREEMENT. 00012 00013 ******************************************************************************/ 00014 00015 #ifndef __SNDSTRUCT__ 00016 #define __SNDSTRUCT__ 00017 #define SND_MAGIC ((int)0x2e736e64) 00018 00019 typedef struct { 00020 int magic; /* must be equal to SND_MAGIC */ 00021 int dataLocation; /* Offset or pointer to the raw data */ 00022 int dataSize; /* Number of bytes of data in the raw data */ 00023 int dataFormat; /* The data format code */ 00024 int samplingRate; /* The sampling rate */ 00025 int channelCount; /* The number of channels */ 00026 char info[4]; /* Textual information relating to the sound. */ 00027 } SndSoundStruct; 00028 00029 /* ensure we don't conflict with SoundKit defs */ 00030 #ifndef SND_CFORMAT_BITS_DROPPED 00031 00032 #define SND_CFORMAT_BITS_DROPPED (0) 00033 #define SND_CFORMAT_BIT_FAITHFUL (1) 00034 #define SND_CFORMAT_ATC (2) /* Audio Transform Compression*/ 00035 00036 #define ATC_FRAME_SIZE (256) 00037 00038 /* 00039 * Sampling rates directly supported in hardware. 00040 */ 00041 #define SND_RATE_CODEC (8012.8210513) 00042 #define SND_RATE_LOW (22050.0) 00043 #define SND_RATE_HIGH (44100.0) 00044 #define SND_RATE_LOW_PC (11025.0) 00045 00046 #endif 00047 00048 #endif /*__SNDSTRUCT__*/