6 package com.netease.nimlib.sdk.avchat.model;
11 import java.nio.ByteBuffer;
17 private AudioFrame audioFrame;
20 this.audioFrame = frame;
25 if (audioFrame != null) {
26 return audioFrame.getData();
32 if (audioFrame != null) {
33 return audioFrame.getSamplesPerChannel();
39 if (audioFrame != null) {
40 audioFrame.setSamplesPerChannel(samplesPerChannel);
45 if (audioFrame != null) {
46 return audioFrame.getSamplesPerSec();
52 if (audioFrame != null) {
53 audioFrame.setSamplesPerSec(samplesPerSec);
58 if (audioFrame != null) {
59 return audioFrame.getChannels();
65 if (audioFrame != null) {
66 audioFrame.setChannels(channels);
71 if(audioFrame != null) {
72 return audioFrame.getBytesPerSample();
void setSamplesPerChannel(int samplesPerChannel)
AVChatAudioFrame(AudioFrame frame)
void setChannels(int channels)
int getSamplesPerChannel()
void setSamplesPerSec(int samplesPerSec)