loadaudio hscript command
Load, unload, and set options for audio.
Usages
loadaudio [-f frame] [-t time] [-v volume] [-s off|on] [-r rate]loadaudio audio_fileloadaudio -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
set the audio to 'talking.aiff'loadaudio talking.aiff
unload the audio (turn it off)loadaudio -u
set the volume to halfloadaudio -v 0.5
sync audio time of 2sec with frame 48loadaudio -f 48 -t 2
turn sustain off.loadaudio -s off
