cog/Application/PlaybackController.h

67 lines
1.4 KiB
C
Raw Normal View History

/* PlaybackController */
2006-01-20 15:41:31 +00:00
#import <Cocoa/Cocoa.h>
#import "CogAudio/AudioPlayer.h"
2006-01-20 15:41:31 +00:00
#import "PlaylistController.h"
#import "TrackingSlider.h"
#import "AudioScrobbler.h"
2006-01-20 15:41:31 +00:00
@class PlaylistView;
@interface PlaybackController : NSObject
{
IBOutlet PlaylistController *playlistController;
IBOutlet PlaylistView *playlistView;
IBOutlet TrackingSlider *positionSlider;
2006-05-13 13:37:32 +00:00
IBOutlet NSSlider *volumeSlider;
2006-01-20 15:41:31 +00:00
IBOutlet NSTextField *timeField;
IBOutlet NSTextField *lengthField;
IBOutlet NSTextField *bitrateField;
IBOutlet NSButton *playButton;
IBOutlet NSArrayController *outputDevices;
NSTimer *positionTimer;
2006-01-20 15:41:31 +00:00
BOOL waitingForPlay; //No sneaky changing on us
AudioPlayer *audioPlayer;
2006-01-20 15:41:31 +00:00
int playbackStatus;
double currentVolume;
2006-04-04 01:08:21 +00:00
2006-01-20 15:41:31 +00:00
BOOL showTimeRemaining;
AudioScrobbler *scrobbler;
2006-01-20 15:41:31 +00:00
}
- (IBAction)toggleShowTimeRemaining:(id)sender;
- (IBAction)changeVolume:(id)sender;
- (IBAction)volumeDown:(id)sender;
- (IBAction)volumeUp:(id)sender;
2006-01-20 15:41:31 +00:00
- (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;
2007-02-26 05:26:48 +00:00
- (void)initDefaults;
2006-01-20 15:41:31 +00:00
- (void)updateTimeField:(double)pos;
- (void)playEntryAtIndex:(int)i;
- (void)playEntry:(PlaylistEntry *)pe;
@end