声音大小调节

您好:
问您下我想调节视频通话时候听筒声音大小,我要调用adjustPlaybackSignalVolume(0-100)这个怎么感觉声音大小没什么变化;

就是通过这个接口来调节的呀,你可以看下系统音量是否有变化?

系统音量也没有变化啊 日志文件一直报错 ,如下
08:40:52:564 13328; VideoSendTrackImpl::agora::VideoSendTrackImpl::UpdateCapturer capturer=0BC2F658
WARN 08:40:52:564 13328; VideoSendTrackImpl::agora::VideoSendTrackImpl::UpdateCapturer, Ignore updating the same capturer
WARN 08:40:52:705 13928; Windows audio device stalls deviceFailed 6
WARN 08:40:53:709 13928; Windows audio device stalls deviceFailed 6
WARN 08:40:54:709 13928; Windows audio device stalls deviceFailed 6

给下 sdk 日志和方法调用代码

好的,

AgoraSDK.rar (7.5 KB)

CAgoraObject *lpAgoraObject = CAgoraObject::GetAgoraObject();
lpAgoraObject->GetVolume(&nRcdVol, &nPlaybackVol, &nMixVol);
if (nPlaybackVol > 99)
nPlaybackVol = 100;
else
nPlaybackVol++;
voice = nPlaybackVol;
ret = lpAgoraObject->AdjustVolume(100, nPlaybackVol, 100);

BOOL CAgoraObject::AdjustVolume(int nRcdVol, int nPlaybackVol, int nMixVol)
{
int nRet = 0;
RtcEngineParameters rep(*m_lpAgoraEngine);
//m_nRcdVol = nRcdVol;
m_nPlaybackVol = nPlaybackVol;
//m_nMixVol = nMixVol;
nRet &= rep.adjustRecordingSignalVolume(nRcdVol);//录音音量[0,100]
nRet &= rep.adjustPlaybackSignalVolume(nPlaybackVol);//设置播放设备音量 [0,100]
nRet &= rep.adjustAudioMixingVolume(nMixVol);//设置混音音量[0,100]
return nRet == 0 ? TRUE : FALSE;
}

void CAgoraObject::GetVolume(int *nRcdVol, int *nPlaybackVol, int *nMixVol)
{
*nRcdVol = m_nRcdVol;
*nPlaybackVol = m_nPlaybackVol;
*nMixVol = m_nMixVol;
}


日志里显示调用成功了,但是音量变化不大,可能导致无感知