OLD | NEW |
(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 |
OLD | NEW |