Removes more unused ADM APIs:
- RecordingDelay() - LastError() Bug: webrtc:7306 Change-Id: I3bb9cd243a1464f0ba612787c854eeb6602c7e38 Reviewed-on: https://webrtc-review.googlesource.com/12060 Commit-Queue: Henrik Andreassson <henrika@webrtc.org> Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20326}
This commit is contained in:
@ -272,13 +272,6 @@ int32_t AudioDeviceModuleImpl::ActiveAudioLayer(AudioLayer* audioLayer) const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// TODO(henrika): remove this API.
|
||||
AudioDeviceModule::ErrorCode AudioDeviceModuleImpl::LastError() const {
|
||||
LOG(INFO) << __FUNCTION__;
|
||||
LOG(WARNING) << "Not supported";
|
||||
return kAdmErrNone;
|
||||
}
|
||||
|
||||
int32_t AudioDeviceModuleImpl::Init() {
|
||||
LOG(INFO) << __FUNCTION__;
|
||||
if (initialized_)
|
||||
@ -858,19 +851,6 @@ int32_t AudioDeviceModuleImpl::PlayoutDelay(uint16_t* delayMS) const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t AudioDeviceModuleImpl::RecordingDelay(uint16_t* delayMS) const {
|
||||
LOG(INFO) << __FUNCTION__;
|
||||
CHECKinitialized_();
|
||||
uint16_t delay = 0;
|
||||
if (audio_device_->RecordingDelay(delay) == -1) {
|
||||
LOG(LERROR) << "failed to retrieve the recording delay";
|
||||
return -1;
|
||||
}
|
||||
*delayMS = delay;
|
||||
LOG(INFO) << "output: " << *delayMS;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t AudioDeviceModuleImpl::SetRecordingSampleRate(
|
||||
const uint32_t samplesPerSec) {
|
||||
LOG(INFO) << __FUNCTION__ << "(" << samplesPerSec << ")";
|
||||
|
||||
Reference in New Issue
Block a user