setAudioFormat) and output the data. The AudioPlayer interface provides a set of potential synchronization points to allow a specific AudioPlayer to batch output in various ways.
These synchronization points are in pairs: reset, drain are used to bracket output of large amounts of audio data. Typically, an implementation will not return from drain until all queued audio has been played (or cancelled).
The methods: begin, end are used to bracket smaller amounts of audio data (typically associated with a single utterance).
pause, resume, cancel, showMetrics, close, getTime, resetTime which can be called from other threads.
| |
| |