Class: NullAudio

NullAudio


new NullAudio()

A NullAudio is an audio device that won't play anything.

Implements:
Source:

Methods


setInputFormat(format)

An engine will call this function to inform the device of the new input format.

Throw an exception if the audio device doesn't support the new input format.

Parameters:
Name Type Description
format AudioInputFormat

The new input format.

Implements:
Source:

validateInputFormat(format)

An engine will call this function to check if the device supports the specified input format.

Return true if the audio device supports the specified input format.

Parameters:
Name Type Description
format AudioInputFormat

The input format to validate.

Implements:
Source: