cog/SoundController.h

59 lines
1.3 KiB
C
Raw Normal View History

2005-06-02 18:16:43 +00:00
/* SoundController */
#import <Cocoa/Cocoa.h>
#import "Sound.h"
#import "PlaylistController.h"
#import "TrackingSlider.h"
2005-06-07 04:01:00 +00:00
@class PlaylistView;
2005-06-02 18:16:43 +00:00
@interface SoundController : NSObject
{
IBOutlet PlaylistController *playlistController;
2005-06-07 04:01:00 +00:00
IBOutlet PlaylistView *playlistView;
2005-06-02 18:16:43 +00:00
IBOutlet TrackingSlider *positionSlider;
IBOutlet NSTextField *timeField;
IBOutlet NSTextField *lengthField;
IBOutlet NSTextField *bitrateField;
2005-06-07 19:28:44 +00:00
IBOutlet NSButton *playButton;
2005-06-02 18:16:43 +00:00
BOOL waitingForPlay; //No sneaky changing on us
Sound *sound;
2005-06-07 04:01:00 +00:00
int playbackStatus;
2005-06-20 18:50:59 +00:00
BOOL showTimeRemaining;
2005-06-02 18:16:43 +00:00
//For communication with the sound
NSPort *sendPort;
NSPort *distantPort;
}
2005-06-20 18:50:59 +00:00
- (IBAction)toggleShowTimeRemaining:(id)sender;
2005-06-29 15:28:20 +00:00
- (IBAction)changeVolume:(id)sender;
2005-06-20 18:50:59 +00:00
2005-06-07 04:01:00 +00:00
- (IBAction)playPauseResume:(id)sender;
2005-06-02 18:16:43 +00:00
- (IBAction)pauseResume:(id)sender;
2005-06-07 04:01:00 +00:00
- (IBAction)play:(id)sender;
2005-06-02 18:16:43 +00:00
- (IBAction)pause:(id)sender;
- (IBAction)resume:(id)sender;
- (IBAction)stop:(id)sender;
- (IBAction)next:(id)sender;
- (IBAction)prev:(id)sender;
- (IBAction)seek:(id)sender;
- (void)playEntryAtIndex:(int)i;
- (void)playEntry:(PlaylistEntry *)pe;
- (void)sendPortMessage:(int)msgid;
- (void)sendPortMessage:(int)msgid withData:(void *)data ofSize:(int)size;
- (void)sendPortMessage:(int)msgid withString:(NSString *)s;
- (void)handlePortMessage:(NSPortMessage *)portMessage;
@end