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

Side by Side Diff: media/audio/clockless_audio_sink.cc

Issue 1133363002: Getting rid of duplicate includes from media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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
« no previous file with comments | « media/audio/audio_output_resampler.cc ('k') | media/audio/mac/audio_manager_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/clockless_audio_sink.h" 5 #include "media/audio/clockless_audio_sink.h"
6 6
7 #include "base/threading/simple_thread.h" 7 #include "base/threading/simple_thread.h"
8 #include "base/time/time.h"
9 #include "media/base/audio_renderer_sink.h"
10 8
11 namespace media { 9 namespace media {
12 10
13 // Internal to ClocklessAudioSink. Class is used to call Render() on a seperate 11 // Internal to ClocklessAudioSink. Class is used to call Render() on a seperate
14 // thread, running as fast as it can read the data. 12 // thread, running as fast as it can read the data.
15 class ClocklessAudioSinkThread : public base::DelegateSimpleThread::Delegate { 13 class ClocklessAudioSinkThread : public base::DelegateSimpleThread::Delegate {
16 public: 14 public:
17 explicit ClocklessAudioSinkThread(const AudioParameters& params, 15 explicit ClocklessAudioSinkThread(const AudioParameters& params,
18 AudioRendererSink::RenderCallback* callback) 16 AudioRendererSink::RenderCallback* callback)
19 : callback_(callback), 17 : callback_(callback),
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 playing_ = false; 99 playing_ = false;
102 playback_time_ = thread_->Stop(); 100 playback_time_ = thread_->Stop();
103 } 101 }
104 102
105 bool ClocklessAudioSink::SetVolume(double volume) { 103 bool ClocklessAudioSink::SetVolume(double volume) {
106 // Audio is always muted. 104 // Audio is always muted.
107 return volume == 0.0; 105 return volume == 0.0;
108 } 106 }
109 107
110 } // namespace media 108 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_output_resampler.cc ('k') | media/audio/mac/audio_manager_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698