1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
media / audio / audio_io.cc [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/audio/audio_io.h"
#include <algorithm>
namespace media {
int AudioOutputStream::AudioSourceCallback::OnMoreData(
base::TimeDelta delay,
base::TimeTicks delay_timestamp,
const AudioGlitchInfo& glitch_info,
AudioBus* dest,
bool is_mixing) {
// Ignore the `is_mixing` flag by default.
return OnMoreData(delay, delay_timestamp, glitch_info, dest);
}
// static
base::TimeDelta AudioOutputStream::BoundedDelay(base::TimeDelta delay) {
return std::clamp(delay, base::Seconds(0), base::Seconds(10));
}
} // namespace media