2006-01-20 15:41:31 +00:00
|
|
|
/* SoundController */
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import "SoundController.h"
|
|
|
|
#import "PlaylistController.h"
|
|
|
|
#import "TrackingSlider.h"
|
|
|
|
|
|
|
|
@class PlaylistView;
|
|
|
|
|
|
|
|
@interface PlaybackController : NSObject
|
|
|
|
{
|
|
|
|
IBOutlet PlaylistController *playlistController;
|
|
|
|
IBOutlet PlaylistView *playlistView;
|
|
|
|
|
|
|
|
IBOutlet TrackingSlider *positionSlider;
|
|
|
|
IBOutlet NSTextField *timeField;
|
|
|
|
IBOutlet NSTextField *lengthField;
|
|
|
|
IBOutlet NSTextField *bitrateField;
|
|
|
|
|
|
|
|
IBOutlet NSButton *playButton;
|
|
|
|
|
2006-04-02 15:44:08 +00:00
|
|
|
NSTimer *positionTimer;
|
|
|
|
|
2006-01-20 15:41:31 +00:00
|
|
|
BOOL waitingForPlay; //No sneaky changing on us
|
|
|
|
SoundController *soundController;
|
|
|
|
|
|
|
|
int playbackStatus;
|
|
|
|
|
2006-04-04 01:08:21 +00:00
|
|
|
float currentVolume;
|
|
|
|
|
2006-01-20 15:41:31 +00:00
|
|
|
BOOL showTimeRemaining;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (IBAction)toggleShowTimeRemaining:(id)sender;
|
|
|
|
- (IBAction)changeVolume:(id)sender;
|
|
|
|
|
|
|
|
- (IBAction)playPauseResume:(id)sender;
|
|
|
|
- (IBAction)pauseResume:(id)sender;
|
|
|
|
|
|
|
|
- (IBAction)play:(id)sender;
|
|
|
|
- (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)updateTimeField:(double)pos;
|
|
|
|
|
|
|
|
- (void)playEntryAtIndex:(int)i;
|
|
|
|
- (void)playEntry:(PlaylistEntry *)pe;
|
|
|
|
|
|
|
|
|
|
|
|
//Methods since this is SoundController's delegate
|
2006-01-29 14:57:48 +00:00
|
|
|
- (void)delegateNotifyStatusUpdate:(NSNumber *)status;
|
2006-01-20 15:41:31 +00:00
|
|
|
- (void)delegateNotifyBitrateUpdate:(float)bitrate;
|
2006-04-02 15:44:08 +00:00
|
|
|
- (void)delegateNotifySongChanged;
|
2006-04-13 02:51:22 +00:00
|
|
|
- (void)delegateRequestNextSong:(PlaylistEntry *)pe;
|
2006-01-20 15:41:31 +00:00
|
|
|
|
|
|
|
@end
|