Audio related QT handlers.

Handlers - qtGetMediaEqualizerBands(), qtGetMediaLevelMeter(), qtGetMediaLevelMeterEnabled(), qtGetTrackBalance(), qtGetTrackBassAndTreble(), qtGetTrackVolume(), qtMakeSeamlessLoop, qtSetMediaLevelMeterEnabled, qtSetTrackBalance, qtSetTrackBassAndTreble, qtSetTrackVolume

function qtGetMediaEqualizerBands (MovieController, TrackName|Index)
Description:
NOT IMPLEMENTED: Returns the equalizer bands for the current media of a track.
Parameters:
MovieController: movieControllerID of player.
TrackName|Index: Name or index of the track. The index refers to the index in regards to audio tracks in the movie, not all tracks.
function qtGetMediaLevelMeter (MovieController, TrackName|Index)
Description:
Returns the level meter for the current media of a given track. The returned value is a comma delimited list with the number of channels (1 or 2), left meter (0-255) and right meter (0-255). A couple of notes:

1) Apparently qtSetMediaLevelMeterEnabled must be called whenever a player's filename is set (not sure about this but without ever messing with enable/disable, I eventually found I had to explicitly use the command to make sure the player returned non-zero values).

2) If you call qtGetMediaLevelMeter immediately after starting the player you'll likely get a "can't get levels" error. A delay of 0.05 seconds after starting the player works fine here.

Parameters:
MovieController: movieControllerID of player.
TrackName|Index: Name or index of the track. The index refers to the index in regards to audio tracks in the movie, not all tracks.
Return:
Number of channels, left meter (0-255), right meter (0-255)
function qtGetMediaLevelMeterEnabled (MovieController, TrackName|Index)
Description:
Returns the enabled state of sound level metering for the current media of the specified track.
Parameters:
MovieController: movieControllerID of player.
TrackName|Index: Name or index of the track. The index refers to the index in regards to audio tracks in the movie, not all tracks.
Return:
true/false
function qtGetTrackBalance (MovieController, TrackName|Index)
Description:
Gets the balance for an audio track.
Parameters:
MovieController: movieControllerID of player.
TrackName|Index: Name or index of the track. The index refers to the index in regards to audio tracks in the movie, not all tracks.
Return:
Balance of track (-128 - 127)
function qtGetTrackBassAndTreble (MovieController, TrackName|Index)
Description:
Returns the bass and treble for a track.
Parameters:
MovieController: movieControllerID of player.
TrackName|Index: Name or index of the track. The index refers to the index in regards to audio tracks in the movie, not all tracks.
Return:
Bass,treble
function qtGetTrackVolume (MovieController, TrackName|Index)
Description:
Returns the volume for a given track.
Parameters:
MovieController: movieControllerID of player.
TrackName|Index: Name or index of the track. The index refers to the index in regards to audio tracks in the movie, not all tracks.
Return:
Volume of track (-256 - 256)
command qtMakeSeamlessLoop (MovieController, LoopCount)
Description:
Makes the audio file currently loaded in the movie controller loop seamlessly for the specifed number of times. This does not affect memory much as the audio data itself is not copied.
Parameters:
MovieController: movieControllerID of player.
LoopCount: Number of times to loop audio file.
Return:
empty or error message.
command qtSetMediaLevelMeterEnabled (MovieController, TrackName|Index, Enable)
Description:
Enables/disables sound level metering for media in a sound track.
Parameters:
MovieController: movieControllerID of player.
TrackName|Index: Name or index of the track. The index refers to the index in regards to audio tracks in the movie, not all tracks.
Enable: True/false.
Return:
empty
command qtSetTrackBalance (MovieController, TrackName|Index, Balance)
Description:
Sets the volume for a given track.
Parameters:
MovieController: movieControllerID of player.
TrackName|Index: Name or index of the track. The index refers to the index in regards to audio tracks in the movie, not all tracks.
Balance: Volume level for track. Values range from -128 (left) thru 127 (right)
Return:
empty or error message.
command qtSetTrackBassAndTreble (MovieController, TrackName|Index, Bass, Treble)
Description:
Sets the bass and treble for a given track.
Parameters:
MovieController: movieControllerID of player.
TrackName|Index: Name or index of the track. The index refers to the index in regards to audio tracks in the movie, not all tracks.
Bass: Bass level for track (-256 thru 256)
Treble: Treble level for track (-256 thru 256)
Return:
empty or error message.
command qtSetTrackVolume (MovieController, TrackName|Index, Volume)
Description:
Sets the volume for a given track.
Parameters:
MovieController: movieControllerID of player.
TrackName|Index: Name or index of the track. The index refers to the index in regards to audio tracks in the movie, not all tracks.
Volume: Volume level for track (-256 - 256)
Return:
empty or error message.