public final class AudioRendererInfo extends Object
SystemCapability.Multimedia#AUDIO| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
AudioRendererInfo.AudioStreamOutputFlag |
Defines audio stream output flags.
|
static class |
AudioRendererInfo.Builder |
A builder of
AudioRendererInfo objects. |
static class |
AudioRendererInfo.PrivilegedMode |
Enumerates the privileged modes used for audio stream playback.
|
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
SESSION_ID_UNSPECIFIED |
Indicates the default value of
sessionID. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
AudioStreamInfo |
getAudioStreamInfo() |
Obtains audio stream information from the playback parameter.
|
AudioRendererInfo.AudioStreamOutputFlag |
getAudioStreamOutputFlag() |
Obtains the output flag of the audio stream.
|
long |
getBufferSizeInBytes() |
Obtains the buffer size of the audio stream.
|
int |
getDeviceId() |
Obtains the ID of the device that plays the audio stream.
|
int |
getSessionID() |
Obtains the session ID of the audio stream.
|
boolean |
isOffload() |
Obtains the offload flag of the audio stream.
|
String |
toString() |
Obtains a string representation of the
AudioRendererInfo instance. |
public static final int SESSION_ID_UNSPECIFIED
sessionID.public AudioStreamInfo getAudioStreamInfo()
public int getSessionID()
public long getBufferSizeInBytes()
public boolean isOffload()
public AudioRendererInfo.AudioStreamOutputFlag getAudioStreamOutputFlag()
AudioStreamOutputFlag.public int getDeviceId()