Implement GetStats in Android ADM.
Calls the AudioOutput implementation of GetStats, which is currently not implemented. Bug: webrtc:14653 Change-Id: Ieaf0e0c030a95d23c8950ff9038a64426142a789 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/324800 Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org> Reviewed-by: Henrik Andreassson <henrika@webrtc.org> Cr-Commit-Position: refs/heads/main@{#41003}
This commit is contained in:
parent
10492ac8ba
commit
9efd080fa2
@ -575,6 +575,12 @@ class AndroidAudioDeviceModule : public AudioDeviceModule {
|
||||
return output_->GetPlayoutUnderrunCount();
|
||||
}
|
||||
|
||||
absl::optional<Stats> GetStats() const override {
|
||||
if (!initialized_)
|
||||
return absl::nullopt;
|
||||
return output_->GetStats();
|
||||
}
|
||||
|
||||
int32_t AttachAudioBuffer() {
|
||||
RTC_DLOG(LS_INFO) << __FUNCTION__;
|
||||
output_->AttachAudioBuffer(audio_device_buffer_.get());
|
||||
|
||||
@ -66,6 +66,9 @@ class AudioOutput {
|
||||
virtual absl::optional<uint32_t> MinSpeakerVolume() const = 0;
|
||||
virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0;
|
||||
virtual int GetPlayoutUnderrunCount() = 0;
|
||||
virtual absl::optional<AudioDeviceModule::Stats> GetStats() const {
|
||||
return absl::nullopt;
|
||||
}
|
||||
};
|
||||
|
||||
// Extract an android.media.AudioManager from an android.content.Context.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user