| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements com. Frees all resources associated with this AudioDevice. |
| public int | |
| public boolean | |
| public void | |
| public void | resume()
Implements com. Unpauses the audio device if supported |
| public void | setVolume(float volume)
Implements com. Sets the volume in the range [0,1]. |
| public void | writeSamples(short[] samples, int offset, int numSamples)
Implements com. Writes the array of 16-bit signed PCM samples to the audio device and blocks until they have been processed. |
| public void | writeSamples(float[] samples, int offset, int numSamples)
Implements com. Writes the array of float PCM samples to the audio device and blocks until they have been processed. |
| MockAudioDevice | back to summary |
|---|---|
| public MockAudioDevice() | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Frees all resources associated with this AudioDevice. Needs to be called when the device is no longer needed.
| |
| getLatency | back to summary |
|---|---|
| public int getLatency() Implements com.
| |
| isMono | back to summary |
|---|---|
| public boolean isMono() Implements com.
| |
| pause | back to summary |
|---|---|
| public void pause() Implements com. Doc from com. Pauses the audio device if supported
| |
| resume | back to summary |
|---|---|
| public void resume() Implements com. Doc from com. Unpauses the audio device if supported
| |
| setVolume | back to summary |
|---|---|
| public void setVolume(float volume) Implements com. Doc from com. Sets the volume in the range [0,1].
| |
| writeSamples | back to summary |
|---|---|
| public void writeSamples(short[] samples, int offset, int numSamples) Implements com. Doc from com. Writes the array of 16-bit signed PCM samples to the audio device and blocks until they have been processed.
| |
| writeSamples | back to summary |
|---|---|
| public void writeSamples(float[] samples, int offset, int numSamples) Implements com. Doc from com. Writes the array of float PCM samples to the audio device and blocks until they have been processed.
| |