public static class SoundStream.Chunk extends Object
SoundStream when
new data is requested.| Constructor and Description |
|---|
SoundStream.Chunk(short[] data,
boolean last)
Constructs a new chunk containing the specified data.
|
public SoundStream.Chunk(short[] data,
boolean last)
data - An array of 16-bit samples representing the chunk's audio data.last - Determines whether this audio chunk is the last in the stream. If set to
true, the stream will stop playing once this chunk has finished
playing.