| Index: content/renderer/media/html_audio_element_capturer_source.cc
|
| diff --git a/content/renderer/media/html_audio_element_capturer_source.cc b/content/renderer/media/html_audio_element_capturer_source.cc
|
| index 399c2212ebe0483aec6f26396f9caaef4f46e3ad..7e0edfc9768e65bca06b4649e9c4f25a2c1f0eff 100644
|
| --- a/content/renderer/media/html_audio_element_capturer_source.cc
|
| +++ b/content/renderer/media/html_audio_element_capturer_source.cc
|
| @@ -65,11 +65,12 @@ void HtmlAudioElementCapturerSource::EnsureSourceIsStopped() {
|
|
|
| void HtmlAudioElementCapturerSource::OnAudioBus(
|
| std::unique_ptr<media::AudioBus> audio_bus,
|
| - uint32_t delay_milliseconds,
|
| + uint32_t frames_delayed,
|
| int sample_rate) {
|
| const base::TimeTicks capture_time =
|
| base::TimeTicks::Now() -
|
| - base::TimeDelta::FromMilliseconds(delay_milliseconds);
|
| + base::TimeDelta::FromMicroseconds(base::Time::kMicrosecondsPerSecond *
|
| + frames_delayed / sample_rate);
|
|
|
| if (sample_rate != last_sample_rate_ ||
|
| audio_bus->channels() != last_num_channels_ ||
|
|
|