00001 00002 // 00003 // $Id: SndFormat.h 3635 2009-10-20 11:20:56Z leighsmith $ 00004 // 00005 // Description: 00006 // Defines a structure for holding sound describing parameters. 00007 // This is the replacement for SndSoundStruct which is now deprecated. 00008 // SndFormat differs from SndSoundStruct such that it becomes a struct just holding 00009 // sample format data, removing the unused info, magic and troublesome dataLocation 00010 // (and the crufty arrangement of data following the struct itself) fields. This will 00011 // still make it easier to pass around formats of sound data than having to pass each 00012 // parameter. 00013 // 00014 // Original Author: Leigh Smith, <leigh@leighsmith.com> 00015 // 00016 // Copyright (c) 2003, The MusicKit Project. All rights reserved. 00017 // 00018 // Permission is granted to use and modify this code for commercial and 00019 // non-commercial purposes so long as the author attribution and copyright 00020 // messages remain intact and accompany all relevant code. 00021 // 00023 00024 #ifndef __SNDFORMAT_H__ 00025 #define __SNDFORMAT_H__ 00026 00027 #import <MKPerformSndMIDI/PerformSound.h> 00028 00039 typedef struct { 00041 SndSampleFormat dataFormat; 00043 long frameCount; 00045 int channelCount; 00047 double sampleRate; 00048 } SndFormat; 00049 00050 #endif