Skip to content

Commit 0dd93c4

Browse files
committed
feat: update hdr login
1 parent 04b5941 commit 0dd93c4

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

windows/APIExample/APIExample/Advanced/AudioProfile/CAgoraAudioProfile.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,15 @@ void CAgoraAudioProfile::joinSecondChannelAndStartAudioMixer()
321321
LocalAudioMixerConfiguration config;
322322
config.syncWithLocalMic = false;
323323
config.streamCount = 2;
324-
config.sourceStreams = sourceStreams;
324+
config.audioInputStreams = sourceStreams;
325325

326326
MixedAudioStream remoteStream( AUDIO_SOURCE_REMOTE_CHANNEL);
327-
remoteStream.channelName = mainchannelName;
328-
config.sourceStreams[0] = remoteStream;
327+
remoteStream.channelId = mainchannelName;
328+
config.audioInputStreams[0] = remoteStream;
329329

330330
MixedAudioStream remoteStream2(AUDIO_SOURCE_MICROPHONE);
331-
remoteStream2.channelName = mainchannelName;
332-
config.sourceStreams[1] = remoteStream2;
331+
remoteStream2.channelId = mainchannelName;
332+
config.audioInputStreams[1] = remoteStream2;
333333
int ret = m_rtcEngine->startLocalAudioMixer(config);
334334
if (ret != 0)
335335
{

windows/APIExample/APIExample/Advanced/PushExternalVideoYUV/PushExternalVideoYUV.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ void PushExternalVideoYUV::OnClickedButtonJoinchannel()
274274
//leave channel in the engine.
275275
if (0 == m_rtcEngine->leaveChannel()) {
276276
strInfo.Format(_T("leave channel %s"), getCurrentTime());
277-
277+
mCbHdr.SetCheck(FALSE);
278+
isUseHdr = false;
278279
yuvReader.stop();
279280
m_remoteVideoWnd.Reset();
280281
m_remoteVideoWnd.SetUID(0);

0 commit comments

Comments
 (0)