Class NERoomRtcAudioFormat
-
- All Implemented Interfaces:
public final class NERoomRtcAudioFormat
音频格式
-
-
Field Summary
Fields Modifier and Type Field Description private final NERoomRtcAudioType
type
private final Integer
channels
private final Integer
sampleRate
private final Integer
bytesPerSample
private final Integer
samplesPerChannel
-
Constructor Summary
Constructors Constructor Description NERoomRtcAudioFormat(NERoomRtcAudioType type, Integer channels, Integer sampleRate, Integer bytesPerSample, Integer samplesPerChannel)
-
Method Summary
Modifier and Type Method Description final NERoomRtcAudioType
getType()
原始数据格式,目前仅支持 PCM 16。 final Integer
getChannels()
音频通道数。 final Integer
getSampleRate()
音频采样率。 final Integer
getBytesPerSample()
单个采样点的字节数。 final Integer
getSamplesPerChannel()
单通道采样点个数。 -
-
Constructor Detail
-
NERoomRtcAudioFormat
NERoomRtcAudioFormat(NERoomRtcAudioType type, Integer channels, Integer sampleRate, Integer bytesPerSample, Integer samplesPerChannel)
-
-
Method Detail
-
getType
final NERoomRtcAudioType getType()
原始数据格式,目前仅支持 PCM 16。
-
getChannels
final Integer getChannels()
音频通道数。
-
getSampleRate
final Integer getSampleRate()
音频采样率。
-
getBytesPerSample
final Integer getBytesPerSample()
单个采样点的字节数。
-
getSamplesPerChannel
final Integer getSamplesPerChannel()
单通道采样点个数。
-
-
-
-