public class AudioSwiftTrack
extends java.lang.Object
Currently, this class is available for smart TVs only.
| 限定符 | 构造器 | 说明 |
|---|---|---|
protected |
AudioSwiftTrack(AudioSwiftSession session) |
Represents a low-latency and high-performance data tack for applications
to play pulse-code modulation (PCM) audio via sessions.
|
protected AudioSwiftTrack(AudioSwiftSession session)
Currently, this class is available for smart TVs only.
public boolean write(byte[] data,
int offset,
int size)
This method can be called only after the session is started by AudioSwiftSession#start().
Currently, only 16-bit, 48000 Hz, and dual-channel PCM data is supported.
data - Indicates the PCM data to write.offset - Indicates the offset (in bytes) where the data writing starts.size - Indicates the length (in bytes) of the PCM data to write.true if the operation is successful; returns false otherwise.