MCPcopy Create free account
hub / github.com/anyrtcIO-Community/anyRTC-RTMP-OpenSource / Init

Method Init

AnyCore/avcodec.cc:83–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool A_AACEncoder::Init(int num_channels, int sample_rate, int pcm_bit_size)
84{
85 if(encoder_)
86 return false;
87 audio_record_sample_hz_ = sample_rate;
88 audio_record_channels_ = num_channels;
89 encoder_ = aac_encoder_open(num_channels, sample_rate, pcm_bit_size, false);
90 return true;
91}
92
93void A_AACEncoder::StartEncoder()
94{

Callers 2

AnyRtmpStreamerImplMethod · 0.45
AnyRtmpCoreMethod · 0.45

Calls 1

aac_encoder_openFunction · 0.85

Tested by

no test coverage detected