This issue is related to
https://chromereviews.googleplex.com/9908014/ I was thinking about shipping ACM2 from the signal repository. There seems to be too many changes in one CL. BUG= R=andrew@webrtc.org, turaj@webrtc.org, xians@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2171004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4733 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -1017,6 +1017,20 @@ class AudioCodingModule: public Module {
|
||||
virtual std::vector<uint16_t> GetNackList(int round_trip_time_ms) const = 0;
|
||||
};
|
||||
|
||||
struct AudioCodingModuleFactory {
|
||||
AudioCodingModuleFactory() {}
|
||||
virtual ~AudioCodingModuleFactory() {}
|
||||
|
||||
virtual AudioCodingModule* Create(int id) const;
|
||||
};
|
||||
|
||||
struct NewAudioCodingModuleFactory : AudioCodingModuleFactory {
|
||||
NewAudioCodingModuleFactory() {}
|
||||
virtual ~NewAudioCodingModuleFactory() {}
|
||||
|
||||
virtual AudioCodingModule* Create(int id) const;
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
#endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_
|
||||
|
||||
@@ -98,4 +98,14 @@ bool AudioCodingModule::IsCodecValid(const CodecInst& codec) {
|
||||
}
|
||||
}
|
||||
|
||||
AudioCodingModule* AudioCodingModuleFactory::Create(int id) const {
|
||||
return new AudioCodingModuleImpl(static_cast<int32_t>(id),
|
||||
Clock::GetRealTimeClock());
|
||||
}
|
||||
|
||||
AudioCodingModule* NewAudioCodingModuleFactory::Create(int id) const {
|
||||
// TODO(minyue): return new AudioCodingModuleImpl (new version).
|
||||
return NULL;
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user