Vizard 7 » Command Index » Vizard modules » viz » <viz>.addAudio
7.7

<viz>.addAudio

Adds an audio file

<viz>.addAudio(  
filename  
device = viz.AUTO_COMPUTE  
)  
filename
Filename of an audio file that is supported by your system.
device = viz.AUTO_COMPUTE
The device to output audio to.

One of the following device values:

Device Value

Description

viz.AUTO_COMPUTE

Use the device ID specified by the viz.audio.device option or the <viz>.setDefaultAudioDevice command, which defaults to 0.

0

Use the default system audio device (configurable through the Windows Control Panel).

AudioDevice object

An audio device object that was retrieved through the <viz>.getAudioDeviceList command.

Remarks

Vizard supports any audio type that is supported by your system through a DirectShow filter. Most systems will support wav, wma, and mp3 files by default.

Return Value

<multimedia:av> object.

Example

audio = viz.addAudio('someFile.wav')

See also

<viz>.addVideo
<viz>.getAudioDeviceList