Minor updates to AudioEncoderCng
Removing sample_rate_hz_ from AudioEncoderCng and from the config struct. The sample rate will now be read from the underlying speech codec. BUG=3926 COAUTHOR:kwiberg@webrtc.org R=tina.legrand@webrtc.org Review URL: https://webrtc-codereview.appspot.com/40559004 Cr-Commit-Position: refs/heads/master@{#8173} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8173 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -22,13 +22,12 @@ namespace webrtc {
|
||||
|
||||
class Vad;
|
||||
|
||||
class AudioEncoderCng : public AudioEncoder {
|
||||
class AudioEncoderCng final : public AudioEncoder {
|
||||
public:
|
||||
struct Config {
|
||||
Config();
|
||||
bool IsOk() const;
|
||||
|
||||
int sample_rate_hz;
|
||||
int num_channels;
|
||||
int payload_type;
|
||||
// Caller keeps ownership of the AudioEncoder object.
|
||||
@ -76,8 +75,6 @@ class AudioEncoderCng : public AudioEncoder {
|
||||
EncodedInfo* info);
|
||||
|
||||
AudioEncoder* speech_encoder_;
|
||||
const int sample_rate_hz_;
|
||||
const int num_channels_;
|
||||
const int cng_payload_type_;
|
||||
const int num_cng_coefficients_;
|
||||
std::vector<int16_t> speech_buffer_;
|
||||
|
||||
Reference in New Issue
Block a user