Skip to content

Commit 153a2ed

Browse files
committed
fix: fix bugs
1 parent 5ed1248 commit 153a2ed

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

windows/APIExample/APIExample/APIExample.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ BEGIN
276276
LTEXT "",IDC_STATIC_DETAIL,442,325,181,58
277277
EDITTEXT IDC_EDIT_AUDIO_MIX_PATH,71,345,218,13,ES_AUTOHSCROLL
278278
CONTROL "only local play",IDC_CHK_ONLY_LOCAL,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,307,365,61,10
279-
CONTROL "replace microphone",IDC_CHK_REPLACE_MICROPHONE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,374,365,78,10
279+
CONTROL "replace microphone",IDC_CHK_REPLACE_MICROPHONE,"Button",BS_AUTOCHECKBOX | NOT WS_VISIBLE | WS_TABSTOP,374,365,78,10
280280
LTEXT "repeat times",IDC_STATIC_AUDIO_REPEAT,11,363,48,8
281281
EDITTEXT IDC_EDIT_AUDIO_REPEAT_TIMES,71,363,218,13,ES_AUTOHSCROLL
282282
CONTROL "",IDC_SLIDER_VOLUME,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,66,381,224,15

windows/APIExample/APIExample/Advanced/AudioMixing/CAgoraAudioMixingDlg.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ void CAgoraAudioMixingDlg::OnBnClickedButtonSetAudioMix()
275275
//strAudioPath = "http://10.70.1.19:9091/file/api/download/electron-wayang/\%E5\%B9\%B4\%E5\%B0\%91\%E6\%9C\%89\%E4\%B8\%BA\%E6\%9D\%8E\%E8\%8D\%A3\%E6\%B5\%A9.mp3";
276276
int nRet = m_rtcEngine->startAudioMixing(strAudioPath.c_str(),
277277
bOnlyLocal,
278-
bReplaceMicroPhone,
279278
iRepeatTimes
280279
);
281280
strInfo.Format(_T("path:%s,\nonlyLocal:%s,\nReplaceMicroPhone:%s,\nRepeatTimes:%d"), strPath,

windows/APIExample/APIExample/Advanced/RegionConn/CAgoraRegionConnDlg.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ bool CAgoraRegionConnDlg::InitAgora()
121121
m_cmbAreaCode.GetWindowText(area_code);
122122

123123
//set area code
124+
CString strInfo;
124125
context.areaCode = m_mapAreaCode[area_code];
126+
strInfo.Format(_T("areaCode: %u"), context.areaCode);
127+
m_lstInfo.InsertString(m_lstInfo.GetCount(), strInfo);
128+
125129
context.eventHandler = &m_eventHandler;
126130
//set channel profile in the engine to the CHANNEL_PROFILE_LIVE_BROADCASTING.
127131
context.channelProfile = CHANNEL_PROFILE_LIVE_BROADCASTING;
@@ -240,7 +244,7 @@ BOOL CAgoraRegionConnDlg::OnInitDialog()
240244

241245
int nIndex = 0;
242246

243-
m_cmbAreaCode.InsertString(nIndex++, _T("AREA_CODE_GLOBAL"));
247+
m_cmbAreaCode.InsertString(nIndex++, _T("AREA_CODE_GLOB"));
244248
m_cmbAreaCode.InsertString(nIndex++, _T("AREA_CODE_CN"));
245249
m_cmbAreaCode.InsertString(nIndex++, _T("AREA_CODE_NA"));
246250
m_cmbAreaCode.InsertString(nIndex++, _T("AREA_CODE_EUR"));

0 commit comments

Comments
 (0)