Sets up several things for the AudioOutputTest to run later in the
_startTest
function.
Optional settings to pass to the test.
Raised when the test ends. The stop condition depends on if the option
to loop was set to true
or false
. If false
, then the test ends either
when the audio file is finished playing, or when a time has elapsed
greater than AudioOutputTest.Options.duration.
A listener function that expects the following parameters when the event is raised:
This AudioOutputTest instance.
Raised when the test has run into an error, fatal or not.
A listener function that expects the following parameters when the event is raised:
This AudioOutputTest instance.
Raised every AudioOutputTest.Options.volumeEventIntervalMs after the test
starts successfully. Will have a number
parameter representing the
current volume of the audio file.
A listener function that expects the following parameters when the event is raised:
This AudioOutputTest instance.
The name of the test.
This event is emitted when the test ends.
This event is emitted when the test encounters an error, fatal or not.
An error that was encountered during the run time of the test.
This event is emitted by the test after succesfully starting, and emits the volume of the audio source every AudioOutputTest.Options.volumeEventIntervalMs milliseconds.
The volume of the audio source.
Stops the test.
Generated using TypeDoc
AudioOutputTest class that parses options and starts an audio output device test.
Please see testAudioOutputDevice for details and recommended practices.