MusicKit  0.0.0
SndStreamRecorder.h
00001 
00002 //
00003 //  $Id$
00004 //
00005 //  Original Author: SKoT McDonald, <skot@tomandandy.com>
00006 //
00007 //  Copyright (c) 2001, The MusicKit Project.  All rights reserved.
00008 //
00009 //  Permission is granted to use and modify this code for commercial and
00010 //  non-commercial purposes so long as the author attribution and copyright
00011 //  messages remain intact and accompany all relevant code.
00012 //
00014 
00015 #ifndef __SNDSTREAMRECORDER_H__
00016 #define __SNDSTREAMRECORDER_H__
00017 
00018 #import <Foundation/Foundation.h>
00019 #import "SndStreamClient.h"
00020 
00021 @class SndAudioBuffer;
00022 @class SndAudioProcessorRecorder;
00023 
00059 @interface SndStreamRecorder : SndStreamClient 
00060 {
00062     SndAudioProcessorRecorder *recorder;
00063 }
00064 
00069 - init;
00070 
00074 - (NSString*) description;
00075 
00079 - (BOOL) startRecording;
00080 
00086 - (BOOL) startRecordingToFile: (NSString *) filename;
00087 
00094 - (void) stopRecording;
00095 
00106 - (void) stopRecordingAndDisconnectFromStream: (BOOL) bDisconnectFromStream;
00107 
00108 @end
00109 
00113 @protocol SndStreamRecorderDelegate <SndStreamClientDelegate>
00114 
00123 - didStartRecording: sender;
00124 
00136 - didFinishRecording: sender;
00137 
00138 @end
00139 
00141 #endif