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

Side by Side Diff: media/audio/null_audio_sink.h

Issue 2836293002: Introduce AudioRendererSink::IsOptimizedForHardwareParameters (Closed)
Patch Set: rebase Created 3 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/clockless_audio_sink.cc ('k') | media/audio/null_audio_sink.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef MEDIA_AUDIO_NULL_AUDIO_SINK_H_ 5 #ifndef MEDIA_AUDIO_NULL_AUDIO_SINK_H_
6 #define MEDIA_AUDIO_NULL_AUDIO_SINK_H_ 6 #define MEDIA_AUDIO_NULL_AUDIO_SINK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 // AudioRendererSink implementation. 28 // AudioRendererSink implementation.
29 void Initialize(const AudioParameters& params, 29 void Initialize(const AudioParameters& params,
30 RenderCallback* callback) override; 30 RenderCallback* callback) override;
31 void Start() override; 31 void Start() override;
32 void Stop() override; 32 void Stop() override;
33 void Pause() override; 33 void Pause() override;
34 void Play() override; 34 void Play() override;
35 bool SetVolume(double volume) override; 35 bool SetVolume(double volume) override;
36 OutputDeviceInfo GetOutputDeviceInfo() override; 36 OutputDeviceInfo GetOutputDeviceInfo() override;
37 bool IsOptimizedForHardwareParameters() override;
37 bool CurrentThreadIsRenderingThread() override; 38 bool CurrentThreadIsRenderingThread() override;
38 void SwitchOutputDevice(const std::string& device_id, 39 void SwitchOutputDevice(const std::string& device_id,
39 const url::Origin& security_origin, 40 const url::Origin& security_origin,
40 const OutputDeviceStatusCB& callback) override; 41 const OutputDeviceStatusCB& callback) override;
41 42
42 // Enables audio frame hashing. Must be called prior to Initialize(). 43 // Enables audio frame hashing. Must be called prior to Initialize().
43 void StartAudioHashForTesting(); 44 void StartAudioHashForTesting();
44 45
45 // Returns the hash of all audio frames seen since construction. 46 // Returns the hash of all audio frames seen since construction.
46 std::string GetAudioHashForTesting(); 47 std::string GetAudioHashForTesting();
(...skipping 16 matching lines...) Expand all
63 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 64 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
64 std::unique_ptr<FakeAudioWorker> fake_worker_; 65 std::unique_ptr<FakeAudioWorker> fake_worker_;
65 std::unique_ptr<AudioBus> audio_bus_; 66 std::unique_ptr<AudioBus> audio_bus_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(NullAudioSink); 68 DISALLOW_COPY_AND_ASSIGN(NullAudioSink);
68 }; 69 };
69 70
70 } // namespace media 71 } // namespace media
71 72
72 #endif // MEDIA_AUDIO_NULL_AUDIO_SINK_H_ 73 #endif // MEDIA_AUDIO_NULL_AUDIO_SINK_H_
OLDNEW
« no previous file with comments | « media/audio/clockless_audio_sink.cc ('k') | media/audio/null_audio_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698