Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: services/media/audio/platform/generic/throttle_output.h

Issue 1424933002: Add an initial revision of an audio server. (Closed) Base URL: https://github.com/domokit/mojo.git@change4
Patch Set: refactor MixerKernel into a class to prepare for the addition of a linear interpolation sampler Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_THROTTLE_OUTPUT_H_
6 #define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_THROTTLE_OUTPUT_H_
7
8 #include "base/callback.h"
9 #include "mojo/services/media/common/cpp/local_time.h"
10 #include "services/media/audio/platform/generic/standard_output_base.h"
11
12 namespace mojo {
13 namespace media {
14 namespace audio {
15
16 class ThrottleOutput : public StandardOutputBase {
17 public:
18 static AudioOutputPtr New(AudioOutputManager* manager);
19 ~ThrottleOutput() override;
20
21 protected:
22 explicit ThrottleOutput(AudioOutputManager* manager);
23
24 // AudioOutput Implementation
25 MediaResult Init() override;
26
27 // StandardOutputBase Implementation
28 bool StartMixJob(MixJob* job, const LocalTime& process_start) override;
29 bool FinishMixJob(const MixJob& job) override;
30
31 private:
32 LocalTime last_sched_time_;
33 };
34
35 } // namespace audio
36 } // namespace media
37 } // namespace mojo
38
39 #endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_THROTTLE_OUTPUT_H_
40
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698