Lines Matching refs:mEncoder
119 mEncoder(nullptr), in C2SoftOpusEnc()
154 if (mEncoder != nullptr) { in configureEncoder()
155 opus_multistream_encoder_destroy(mEncoder); in configureEncoder()
158 mEncoder = opus_multistream_encoder_create(mSampleRate, mChannelCount, in configureEncoder()
167 mEncoder, OPUS_SET_COMPLEXITY(complexity)) != OPUS_OK) { in configureEncoder()
173 if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_DTX(0) != OPUS_OK)) { in configureEncoder()
179 if (opus_multistream_encoder_ctl(mEncoder, in configureEncoder()
186 if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_SIGNAL(OPUS_AUTO)) != in configureEncoder()
193 if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_VBR(1) != OPUS_OK)) { in configureEncoder()
197 if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_VBR_CONSTRAINT(1) != in configureEncoder()
204 if (opus_multistream_encoder_ctl(mEncoder, OPUS_SET_BITRATE(bitrate)) != in configureEncoder()
246 if (mEncoder) { in onStop()
247 int status = opus_multistream_encoder_ctl(mEncoder, OPUS_RESET_STATE); in onStop()
270 if (mEncoder) { in onRelease()
271 opus_multistream_encoder_destroy(mEncoder); in onRelease()
272 mEncoder = nullptr; in onRelease()
285 mEncoder, mInputBufferPcm16, mNumSamplesPerFrame, outPtr, kMaxPayload); in drainEncoder()
331 if (!mEncoder) { in process()
405 if (opus_multistream_encoder_ctl(mEncoder, OPUS_GET_LOOKAHEAD(&lookahead)) != in process()
473 opus_multistream_encode(mEncoder, mInputBufferPcm16, in process()