struct CodecInst;
class CriticalSectionWrapper;
-class RWLockWrapper;
class NetEq;
namespace acm2 {
bool vad_enabled() const { return vad_enabled_; }
//
- // Get the decode lock used to protect decoder instances while decoding.
- //
- // Return value : Pointer to the decode lock.
- //
- RWLockWrapper* DecodeLock() const { return decode_lock_; }
-
- //
// Flushes the NetEq packet and speech buffers.
//
void FlushBuffers();
std::vector<uint16_t> GetNackList(int round_trip_time_ms) const;
//
- // Returns the background noise mode. This is only for testing and ACM is not
- // calling this function. Used in acm_receiver_unittest.cc.
- //
- NetEqBackgroundNoiseMode BackgroundNoiseModeForTest() const;
-
- //
// Get statistics of calls to GetAudio().
void GetDecodingCallStatistics(AudioDecodingCallStats* stats) const;
CallStatistics call_stats_ GUARDED_BY(crit_sect_);
NetEq* neteq_;
Decoder decoders_[ACMCodecDB::kMaxNumCodecs];
- RWLockWrapper* decode_lock_;
bool vad_enabled_;
Clock* clock_; // TODO(henrik.lundin) Make const if possible.