This interface provides access to notification sounds, sound scenarios, and mixer controls.
org.freesmartphone.Device.Audio
Description: Returns information about the audio hardware.
Information about the audio hardware. Expected tuples:
Description: Returns a list of supported audio formats given by extension.
The supported audio formats.
Description: Returns a list of supported audio scenarios.
The supported audio scenarios.
Description: Play a sound resource.
The identification of the sound resource. Will be treated as filename, if no schema is given. Format-specific options may be supplied by appending multiple ";foo=bar" statements to the filename. Player engines that do not support these options should ignore them.
i: loopLoop. Set this to 1, if you want the sound resource to be restarted, once it ends. 0, otherwise.
i: lengthLength in seconds. Set this to anything other than 0 if you want to override the length of the sound resource. Note that some audio resources have no concept of length or do know when the sound resource ends. In these cases, you have to provide a reasonable length value or the sound will play endlessly.
Description: Stop playing a sound resource.
The identification of the sound resource. Will be treated as filename, if no schema is given.
Description: Stop all currently played sound resources.
Description: Get the current audio scenario.
The name of the scenario.
Description: Set a new audio scenario.
The name of the scenario.
Description: Set a new audio scenario and push the previous one on the stack.
The name of the scenario.
Description: Set the previously active audio scenario.
The current scenario.
Description: Sent whenever a sound has been started or stopped.
The identification of sound resource that changed its status.
s: statusThe new status for the sound resource.
a{sv}: propertiesAn array of property values. Note that properties are optional. Expected tuples are:
Description: Sent whenever there is a change of the global sound scenario.
The scenario that is now active.
s: reasonThe reason for this change. Expected reasons are:
Description: Raised, if the audio format is not supported.
Description: Raised, if the player emits an (internal) error.
Description: Raised, if the audio file is not playing.
Description: Raised, if the audio file is already playing.
Description: Raised, if the audio scenario can not be activated.
Description: Raised, if there is no more scenario to pull from the stack.
Description: Raised, if the audio device reported a problem.