

Classes | |
| interface | AudioRoute |
| interface | PCMDataOutputCallback |
| interface | PlayStatus |
| interface | PlayStatusListener |
| interface | TTSOutputCallback |
Public Member Functions | |
| void | redirectTTSOutput (TTSOutputCallback callback) |
| void | redirectPCMDataOutput (PCMDataOutputCallback callback) |
| void | playOutput (final AudioOutput audioOutput) |
| void | skipCurrentOutput () |
| void | stopOutputAndClearQueue () |
| void | clearQueue () |
| void | addPlayStatusListener (final PlayStatusListener listener) |
| void | addPlayStatusListener (final PlayStatusListener listener, @Nullable final Executor executor) |
| void | removePlayStatusListener (final PlayStatusListener listener) |
| void | setAudioRoute (@AudioRoute int audioRoute) |
| int | getAudioRoute () |
| void | setHfpDelay (int hfpDelay) |
Protected Member Functions | |
| void | finalize () throws Throwable |
Manages the playback of audio output from files or TTS
| void com.sygic.sdk.audio.AudioManager.addPlayStatusListener | ( | final PlayStatusListener | listener | ) |
| void com.sygic.sdk.audio.AudioManager.addPlayStatusListener | ( | final PlayStatusListener | listener, |
| @Nullable final Executor | executor | ||
| ) |
Adds a PlayStatus listener
| listener | PlayStatusListener listener |
| executor | Executor which will execute listener's callbacks |
| void com.sygic.sdk.audio.AudioManager.clearQueue | ( | ) |
Removes all output from the audio queue. Currently played output will be allowed to finish
|
protected |
| int com.sygic.sdk.audio.AudioManager.getAudioRoute | ( | ) |
| void com.sygic.sdk.audio.AudioManager.playOutput | ( | final AudioOutput | audioOutput | ) |
Plays audio output. If audio queue is empty, output will be played immediately. Otherwise it will be added to the end of the queue and played later. Note: It audio output is from file, make sure to have sufficient permission to read file (READ_EXTERNAL_STORAGE)
| audioOutput |
| void com.sygic.sdk.audio.AudioManager.redirectPCMDataOutput | ( | PCMDataOutputCallback | callback | ) |
Redirect the PCM data output to PCMDataOutputCallback Setting callback to null will reset audio output to normal
| callback | Callback to receive and process redirected data |
| void com.sygic.sdk.audio.AudioManager.redirectTTSOutput | ( | TTSOutputCallback | callback | ) |
Redirect the TTS text to TTSOutputCallback Setting callback to null will reset audio output to normal
| callback | Callback to receive and process redirected text |
| void com.sygic.sdk.audio.AudioManager.removePlayStatusListener | ( | final PlayStatusListener | listener | ) |
| void com.sygic.sdk.audio.AudioManager.setAudioRoute | ( | @AudioRoute int | audioRoute | ) |
| void com.sygic.sdk.audio.AudioManager.setHfpDelay | ( | int | hfpDelay | ) |
| void com.sygic.sdk.audio.AudioManager.skipCurrentOutput | ( | ) |
Skips the output at the front of the queue
| void com.sygic.sdk.audio.AudioManager.stopOutputAndClearQueue | ( | ) |
Stops playing the current output immediately and clears any queued output