Home Reference HScript commands 

loadaudio hscript command

Load, unload, and set options for audio.

Usages

  1. loadaudio [-f frame] [-t time] [-v volume] [-s off|on] [-r rate]

  2. loadaudio audio_file

  3. loadaudio -u

Note

This command is only available in MPlay.

Options

-f frame

The frame to align the audio start time with (default frame 1).

-t time

the audio start time to sync with the start frame (default 0sec).

-v volume

Audio volume (1=normal, 0=mute).

-s off|on

Turns audio sustain on or off (default on).

-S off|on

Turns Audio FPS synchronization on or off (default on). When on, changing the FPS on the playbar will cause the audio to slow down or speed up so that it stays synchronized with the images playing back at their natural FPS. When off, audio and images may no longer be synchronized if the FPS changes.

-F fps

The natural frames per second of the audio. This is set to the initial FPS mplay upon startup.

-r rate

The audio scrub rate to use (default 45).

-u

Unload the current audio clip.

Examples

loadaudio talking.aiff
set the audio to 'talking.aiff'

loadaudio -u
unload the audio (turn it off)

loadaudio -v 0.5
set the volume to half

loadaudio -f 48 -t 2
sync audio time of 2sec with frame 48

loadaudio -s off
turn sustain off.

Replaced by