WebRTC audio capture, encode, send

Source: Internet
Author: User

Audiodevicelinuxpulse :: recthreadprocess

Audiodevicelinuxpulse :: Processrecordeddata

Audiodevicelinuxpulse::readrecordeddata

Provide data to Voiceengine
if (Processrecordeddata (_recbuffer, numrecsamples, recdelay) = =-1)
{
We have stopped recording
return-1;
}

Audiodevicebuffer :: Deliverrecordeddata

Voebaseimpl :: recordeddataisavailable

Voebaseimpl::P ROCESSRECORDEDDATAWITHAPM

Voebaseimpl :: PROCESSRECORDEDDATAWITHAPM

Transmitmixer :: Preparedemux

Transmitmixer :: Generateaudioframe

Voebaseimpl :: PROCESSRECORDEDDATAWITHAPM

Transmitmixer :: Demuxandmix

Channel:: Demultiplex

Channel:: Prepareencodeandsend

Transmitmixer :: Encodeandsend

Channel:: Encodeandsend

Audiocodingmoduleimpl :: Add10msdata

The ACM resamples internally.
_audioframe.timestamp_ = _timestamp;
if (Audio_coding_->add10msdata (audioframe&) _audioframe)! = 0)
{
Webrtc_trace (Ktraceerror, Ktracevoice, Voeid (_instanceid,_channelid),
"Channel::encodeandsend () ACM encoding failed");
return-1;
}

Audiocodingmoduleimpl :: Preprocesstoadddata

Acmgenericcodec :: Add10msdatasafe

Acmgenericcodec :: Encode

Audiocodingmoduleimpl :: Processsinglestream

Channel:: SendData

Modulertprtcpimpl :: Sendoutgoingdata

Rtpsender :: Sendoutgoingdata

Rtpsender :: Buildrtpheader

Rtpsender :: sendtonetwork

Channel:: Sendpacket

Basechannel :: Sendpacket

P2ptransportchannel:: Sendpacket

Asyncudpsocket :: SendTo

Physicalsocket : Sendto

WebRTC audio capture, encode, send

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.