Back to Aurora Vision Library Lite website

You are here: Start » All Functions » Sound » PlaySoundFile

PlaySoundFile


This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.

Header: STD.h
Namespace: avl

Plays specified audio file in WAV format.

Syntax

void avl::PlaySoundFile
(
	PlaySoundFileState& ioState,
	const atl::File& inFile,
	bool inSynchronous
)

Parameters

Name Type Default Description
Input will be modified ioState PlaySoundFileState& Object used to maintain state of the function.
Input value inFile const File& Sound file in WAV format
Input value inSynchronous bool False Plays sound in synchronous mode, waiting for the end of playback

Description

This filter plays specified in inFile audio file in WAV format. The audio file is by default played in asynchronous (non-blocking) mode - to play file in synchronous mode set the inSynchronous input to True.

Errors

List of possible exceptions:

Error type Description
IoError PlaySoundFile supports only .wav files.