@stutberidze there are 3 things to take note when sending raw audio.
- You might need to call the method below, which unmutes the microphone
void turnOnSendVideoAndAudio() {
//testing WIP
if (SendVideoRawData) {
IMeetingVideoController* meetingVidController = m_pMeetingService->GetMeetingVideoController();
meetingVidController->UnmuteVideo();
}
//testing WIP
if (SendAudioRawData) {
IMeetingAudioController* meetingAudController = m_pMeetingService->GetMeetingAudioController();
meetingAudController->JoinVoip();
printf("Is my audio muted: %d\n", getMyself()->IsAudioMuted());
meetingAudController->UnMuteAudio(getMyself()->GetUserID());
}
}
void turnOffSendVideoandAudio() {
//testing WIP
if (SendVideoRawData) {
IMeetingVideoController* meetingVidController = m_pMeetingService->GetMeetingVideoController();
meetingVidController->MuteVideo();
}
//testing WIP
if (SendAudioRawData) {
IMeetingAudioController* meetingAudController = m_pMeetingService->GetMeetingAudioController();
meetingAudController->MuteAudio(getMyself()->GetUserID(), true);
}
}
-
There is noise suppression turned on for Meeting SDK, hence there is possibility some audio files might play “nothing” audible.
-
For the code above, you would need a PCM file with 16 bit signed, mono channel and little endian order. The frequency can be set when sending. In this case it is 44100hz in the sample code.