VizKit  3.3.7
Static Public Member Functions | Private Member Functions | Static Private Member Functions
VizKit::VisualMain Class Reference

Handles the events and messages passed in by iTunes. More...

#include <VisualMain.h>

List of all members.

Static Public Member Functions

static OSStatus VisualPluginHandler (OSType aMessage, VisualPluginMessageInfo *aVisualPluginMessageInfo, void *aRefCon)
 Called by iTunes to send messages to visualizer plug-in.
static OSStatus RegisterVisualPlugin (PluginMessageInfo *aPluginMessageInfo)
 Called by iTunes, dispatched from main function.

Private Member Functions

 VisualMain ()
 The constructor.
 ~VisualMain ()
 The destructor.

Static Private Member Functions

static bool storeAudioTrackMetadata (const ITTrackInfo *const someTrackMetadata, bool isAudioStream)
 Stores textual audio track information.
static void storeAudioStreamMetadata (const ITStreamInfo *const someStreamMetadata)
 Stores textual audio stream information.
static void convertVisualPluginMessageToString (const OSType aVisualPluginMessage, char *anOutString)
 Static helper function that converts a VisualPluginMessage to the string.

Detailed Description

Handles the events and messages passed in by iTunes.

In its public section VisualMain contains the functions called by iTunes. Private static functions access the various internal classes of the visualizer. Essential events are: audio play start, audio play stop, show start, show stop, and render message. When displaying graphics, the visualizer spends most of its time with executing the render message.


Constructor & Destructor Documentation

The constructor.

VisualMain is a collection of static methods. Class does not need any instances. Constructor is private and not implemented.

The destructor.

VisualMain is a collection of static methods. Class does not need any instances. Destructor is private and not implemented.


Member Function Documentation

void VisualMain::convertVisualPluginMessageToString ( const OSType  aVisualPluginMessage,
char *  anOutString 
) [static, private]

Static helper function that converts a VisualPluginMessage to the string.

Possibly useful for debugging or tracing purposes.

Parameters:
aVisualPluginMessageThe visualPluginMessage.
anOutStringThe character string value of the VisualNotificationKey enum value.
OSStatus VisualMain::RegisterVisualPlugin ( PluginMessageInfo *  aPluginMessageInfo) [static]

Called by iTunes, dispatched from main function.

Registers the visualizer plug-in to iTunes. The function calls PlayerRegisterVisualPlugin to be registered by iTunes.

Parameters:
aPluginMessageInfoA pointer to a data structure passed in by iTunes and sent on to PlayerRegisterVisualPlugin.
Returns:
Status of the operation.
void VisualMain::storeAudioStreamMetadata ( const ITStreamInfo *const  someStreamMetadata) [static, private]

Stores textual audio stream information.

Parameters:
someStreamMetadataPointer to all accessible stream information.
bool VisualMain::storeAudioTrackMetadata ( const ITTrackInfo *const  someTrackMetadata,
bool  isAudioStream 
) [static, private]

Stores textual audio track information.

Parameters:
someTrackMetadataPointer to all accessible track information.
isAudioStreamTrue if track meta data belongs to audio stream. False if meta data belongs to audio track.
Returns:
True if audio track changed compared to previous one. False if metadata is the same as with the previous audio track.
OSStatus VisualMain::VisualPluginHandler ( OSType  aMessage,
VisualPluginMessageInfo *  aVisualPluginMessageInfo,
void *  aRefCon 
) [static]

Called by iTunes to send messages to visualizer plug-in.

Known by iTunes via call to PlayerRegisterVisualPlugin. These types of messages can be received: kVisualPluginInitMessage kVisualPluginCleanupMessage kVisualPluginIdleMessage kVisualPluginConfigureMessage kVisualPluginEnableMessage kVisualPluginDisableMessage kVisualPluginActivateMessage kVisualPluginWindowChangedMessage kVisualPluginDeactivateMessage kVisualPluginPulseMessage kVisualPluginDrawMessage kVisualPluginFrameChangedMessage kVisualPluginPlayMessage kVisualPluginChangeTrackMessage kVisualPluginSetPositionMessage kVisualPluginStopMessage kVisualPluginCoverArtMessage kVisualPluginDisplayChangedMessage

Parameters:
aMessageType of message.
aVisualPluginMessageInfoAdditional data.
aRefConPointer to untyped additional data.
Returns:
Error status.

The documentation for this class was generated from the following files:

Generated on Sun May 3 2015 20:26:32 for VizKit by doxygen 1.8.0