MusicKit
0.0.0
|
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_SNDAUDIOPROCESSORDELAY_H__ 00018 #define __SNDKIT_SNDAUDIOPROCESSORDELAY_H__ 00019 00020 #import <Foundation/Foundation.h> 00021 #import "SndAudioProcessor.h" 00022 00030 enum SndDelayParam { 00031 dlyLength = 0, 00032 dlyFeedback = 1, 00033 dlyNumParams = 2 00034 }; 00035 00037 00044 @interface SndAudioProcessorDelay : SndAudioProcessor 00045 { 00047 float *chanL; 00049 float *chanR; 00051 float feedback; 00053 long length; 00055 long readPos; 00057 long writePos; 00059 NSLock *processingLock; 00060 } 00061 00068 + delayWithLength: (const long) nSams feedback: (const float) fFB; 00069 00076 - setLength: (const long) nSams andFeedback: (const float) fFB; 00077 00082 - freemem; 00083 00084 @end 00085 00087 00088 #endif