Skip to content

Commit 161a54b

Browse files
committed
windows wrong audio param
1 parent 2bc739e commit 161a54b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

windows/APIExample/APIExample/Advanced/CustomAudioCapture/CAgoraCaptureAudioDlg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ LRESULT CAgoraCaptureAduioDlg::OnEIDRemoteVideoStateChanged(WPARAM wParam, LPARA
9191

9292
CAgoraCaptureAduioDlg::CAgoraCaptureAduioDlg(CWnd* pParent /*=nullptr*/)
9393
: CDialogEx(IDD_DIALOG_CUSTOM_CAPTURE_AUDIO, pParent)
94+
, m_capAudioInfo{48000, 2}
95+
, m_renderAudioInfo {48000, 2}
9496
{
9597
m_audioFrame.buffer = new BYTE[48000 * 4 * 4];
9698
}
@@ -282,8 +284,6 @@ void CAgoraCaptureAduioDlg::EnableCaputre(BOOL bEnable) {
282284
m_audioFrame.samplesPerSec = waveFormat.nSamplesPerSec;
283285
m_audioFrame.samples = m_audioFrame.samplesPerSec / 100;
284286

285-
//set recording audio frame parameters in the engine.
286-
//m_rtcEngine->setRecordingAudioFrameParameters(waveFormat.nSamplesPerSec, waveFormat.nChannels, RAW_AUDIO_FRAME_OP_MODE_READ_WRITE, waveFormat.nSamplesPerSec * waveFormat.nChannels / 100);
287287
//create audio capture filter.
288288
if (!m_agAudioCaptureDevice.CreateCaptureFilter())
289289
return;

0 commit comments

Comments
 (0)