//
//  MainController_rec.h
//  VH7PC_Controller
//
//  Created by nya on 04/12/03.
//  Copyright 2004 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


enum {
	REC_IDLE,
	REC_RECORD,
	REC_THROUGH
};


@interface Recoder : NSObject {
	IBOutlet id	recordDestField_;
	IBOutlet id	playWhileRecCheck_;

	id			grabber_;
	NSString	*recordDir_;
	
	int			status_;
	BOOL		playWhileRecording_;
	
	id				chan_;
	NSDictionary	*channelsetting_;
}

- (int) status;
- (NSString *) throughMenuString;
- (NSString *) recordMenuString;

- (long) recordTo:(NSString *)path;
- (long) playThrough;
- (long) record;
- (void) recordWithName:(NSString *)name;

- (long) stop;

- (void) setRecordDir:(NSString *)path;
- (NSString *) recordDir;

- (void) setPlayWhileRecording:(BOOL)b;
- (BOOL ) playWhileRecording;


- (IBAction) changeRecordDest:(id) sender;

- (long) setting;
- (void) settingWithDictionary:(NSDictionary *)dic;
- (NSDictionary *) settingDictionary;
- (NSString *) format;
- (NSString *) extension;

@end
