-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathEncoderController.h
74 lines (59 loc) · 2.59 KB
/
EncoderController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* Copyright (C) 2005 - 2007 Stephen F. Booth <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#import <Cocoa/Cocoa.h>
@class AudioMetadata, CompactDiscDocument, EncoderTask;
// List of the encoder components available in Max
enum {
kComponentCoreAudio = 0,
kComponentLibsndfile = 1,
kComponentFLAC = 2,
kComponentOggFLAC = 3,
kComponentWavPack = 4,
kComponentMonkeysAudio = 5,
kComponentOggVorbis = 6,
kComponentMP3 = 7,
kComponentOggSpeex = 8
};
@interface EncoderController : NSWindowController
{
IBOutlet NSTableView *_taskTable;
IBOutlet NSArrayController *_tasksController;
NSMutableArray *_tasks;
BOOL _freeze;
}
+ (EncoderController *) sharedController;
// Functionality
- (void) encodeFile:(NSString *)filename metadata:(AudioMetadata *)metadata settings:(NSDictionary *)settings;
- (void) encodeFile:(NSString *)filename metadata:(AudioMetadata *)metadata settings:(NSDictionary *)settings inputTracks:(NSArray *)inputTracks;
- (void) encodeFiles:(NSArray *)filenames metadata:(AudioMetadata *)metadata settings:(NSDictionary *)settings;
- (void) encodeFiles:(NSArray *)filenames metadata:(AudioMetadata *)metadata settings:(NSDictionary *)settings inputTracks:(NSArray *)inputTracks;
- (BOOL) documentHasEncoderTasks:(CompactDiscDocument *)document;
- (void) stopEncoderTasksForDocument:(CompactDiscDocument *)document;
- (BOOL) hasTasks;
- (NSUInteger) countOfTasks;
// Action methods
- (IBAction) stopSelectedTasks:(id)sender;
- (IBAction) stopAllTasks:(id)sender;
// Callbacks
- (void) encoderTaskDidStart:(EncoderTask *)task;
- (void) encoderTaskDidStop:(EncoderTask *)task;
- (void) encoderTaskDidComplete:(EncoderTask *)task;
- (void) encoderTaskDidStart:(EncoderTask *)task notify:(BOOL)notify;
- (void) encoderTaskDidStop:(EncoderTask *)task notify:(BOOL)notify;
- (void) encoderTaskDidComplete:(EncoderTask *)task notify:(BOOL)notify;
@end