MusicKit
0.0.0
|
Responsible for receiving user interface messages from the Cocoa or Carbon Audio Unit views and passing them down to the Audio Unit (which is wrapped within the SndAudioUnitProcessor). Receives buttons for bypassing an effect. More...
#import <SndAudioUnitController.h>
Public Member Functions | |
(id) | - initWithAudioProcessor: |
Initialises a view instance with a given AudioUnit Processor. | |
(SndAudioUnitProcessor *) | - audioUnitProcessor |
Returns the audio unit processor this SndAudioUnitController is controlling. | |
(NSWindow *) | - window |
Returns the window displaying and managing the audio unit view (Carbon or Cocoa). | |
(NSView *) | - contentView |
Returns the NSView of the AudioUnit user interface. | |
Protected Attributes | |
AudioUnitCarbonView | carbonView |
WindowRef | auWindow |
NSWindow * | cocoaAUWindow |
NSView * | audioUnitUIView |
SndAudioUnitProcessor * | audioUnitProcessor |
Responsible for receiving user interface messages from the Cocoa or Carbon Audio Unit views and passing them down to the Audio Unit (which is wrapped within the SndAudioUnitProcessor). Receives buttons for bypassing an effect.
Does this model one connection of a AudioUnitCarbonView instance to a SndAudioUnitProcessor instance? Several? Controls the display of an Audio Unit view.
If it's a Cocoa view, load it from it's bundle and return it. If it's a Carbon View, start it up in a separate window. Probably rename SndAudioUnitController, and normally create or be assigned a Cocoa window or a Carbon window.
Returns the audio unit processor this SndAudioUnitController is controlling.
- (NSView *) contentView |
Returns the NSView of the AudioUnit user interface.
Use this method if it necessary to embed the AudioUnit user interface inside an existing window. If you want the AudioUnit user interface to have it's own window, use -window to retrieve an existing one.
- (id) initWithAudioProcessor: | (SndAudioUnitProcessor *) | processor |
Initialises a view instance with a given AudioUnit Processor.
Responsible for loading the user interface and displaying it either in a separate window (Carbon) or initialising it ready for incorporation within another view (Cocoa).
- (SndAudioUnitProcessor*) audioUnitProcessor [protected] |
The AudioUnit SndAudioProcessor instance this instance controls.
- (NSView*) audioUnitUIView [protected] |
audioUnitUIView The Cocoa AudioUnit View. This is the content view of cocoaAUWindow, but can also be retrieved independently.
- (WindowRef) auWindow [protected] |
The handle onto the Carbon window loaded from the Carbon nib file.
- (AudioUnitCarbonView) carbonView [protected] |
The handle onto the AudioUnitCarbonView
- (NSWindow*) cocoaAUWindow [protected] |
The NSWindow instance that will wrap a Carbon window if the nib file is Carbon or will be a Cocoa window that contains the Cocoa Audio Unit user interface instance.