Client applications specify the decoded audio buffer format, the sample rate (in Hz) and the number of audio channels.
The standard format for the decoded audio is "S16N".
Client applications respond to native callbacks by providing an implementation of {@link AudioCallback} or {@link AudioCallbackAdapter}.
When using the direct audio player then obviously the audio is not played - if a client application needs the audio to be heard then the client application must play the audio samples itself (e.g. via JavaSound or some other library).
The main callback is "play", whereby a number of decoded audio samples are presented - the number of audio samples does not equate to the size of the audio buffer, the "block size" for a sample must also be considered.
|
|