/* SoundController */ #import #import "Sound.h" #import "PlaylistController.h" #import "TrackingSlider.h" @class PlaylistView; @interface SoundController : NSObject { IBOutlet PlaylistController *playlistController; IBOutlet PlaylistView *playlistView; IBOutlet TrackingSlider *positionSlider; IBOutlet NSTextField *timeField; IBOutlet NSTextField *lengthField; IBOutlet NSTextField *bitrateField; IBOutlet NSButton *playButton; BOOL waitingForPlay; //No sneaky changing on us Sound *sound; int playbackStatus; //For communication with the sound NSPort *sendPort; NSPort *distantPort; } - (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)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