| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements com. Releases all resources of this object. |
| public String[] | getAvailableOutputDevices()
Implements com. This function returns a list of fully qualified Output device names. |
| public AudioDevice | newAudioDevice(int samplingRate, boolean isMono)
Implements com. Creates a new |
| public AudioRecorder | newAudioRecorder(int samplingRate, boolean isMono)
Implements com. Creates a new |
| public Music | newMusic(FileHandle file)
Implements com. Creates a new |
| public Sound | newSound(FileHandle fileHandle)
Implements com.
Creates a new |
| public boolean | switchOutputDevice(String deviceIdentifier)
Implements com. Sets a new OutputDevice. |
| MockAudio | back to summary |
|---|---|
| public MockAudio() | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Releases all resources of this object.
| |
| getAvailableOutputDevices | back to summary |
|---|---|
| public String[] getAvailableOutputDevices() Implements com. Doc from com. This function returns a list of fully qualified Output device names. This function is only implemented on desktop and web. Note that on gwt the GwtApplicationConfiguration#fetchAvailableOutputDevices attribute needs to be set to true for asking the user for permission! On all other platforms it will return an empty array. It will also return an empty array on error. The names returned need os dependent preprocessing before exposing to a user.
| |
| newAudioDevice | back to summary |
|---|---|
| public AudioDevice newAudioDevice(int samplingRate, boolean isMono) Implements com. Doc from com. Creates a new
| |
| newAudioRecorder | back to summary |
|---|---|
| public AudioRecorder newAudioRecorder(int samplingRate, boolean isMono) Implements com. Doc from com. Creates a new
| |
| newMusic | back to summary |
|---|---|
| public Music newMusic(FileHandle file) Implements com. Doc from com. Creates a new
| |
| newSound | back to summary |
|---|---|
| public Sound newSound(FileHandle fileHandle) Implements com. Doc from com.
Creates a new Currently supported formats are WAV, MP3 and OGG.
The Sound has to be disposed if it is no longer used via the
| |
| switchOutputDevice | back to summary |
|---|---|
| public boolean switchOutputDevice(String deviceIdentifier) Implements com. Doc from com. Sets a new OutputDevice. The identifier can be retrieved from
| |