MusicKit  0.0.0
SndAudioProcessorToneGenerator.h
00001 
00002 //
00003 //  $Id$
00004 //
00005 //  Description:
00006 //
00007 //  Original Author: SKoT McDonald, <skot@tomandandy.com>
00008 //
00009 //  Copyright (c) 2001, The MusicKit Project.  All rights reserved.
00010 //
00011 //  Permission is granted to use and modify this code for commercial and
00012 //  non-commercial purposes so long as the author attribution and copyright
00013 //  messages remain intact and accompany all relevant code.
00014 //
00016 
00017 #ifndef __SNDKIT_SNDAUDIOPROCESSORTONEGENERATOR_H__
00018 #define __SNDKIT_SNDAUDIOPROCESSORTONEGENERATOR_H__
00019 
00020 #import <Foundation/Foundation.h>
00021 #import "SndAudioProcessor.h"
00022 
00031 enum {
00032   toneGen_kFreq      = 0,
00033   toneGen_kAmp       = 1,
00034   toneGen_kPhase     = 2,
00035   toneGen_kWave      = 3,
00036   toneGen_kNumParams = 4
00037 };
00038 
00039 @class SndAudioBuffer;
00040 
00042 
00049 @interface SndAudioProcessorToneGenerator : SndAudioProcessor
00050 {
00052   float freq;
00054   float amp;
00056   float phase;
00058   int   waveform;
00059   
00060 @private
00062   double t;
00063 }
00064 
00065 @end
00066 
00068 
00069 #endif