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

Side by Side Diff: media/base/fake_audio_renderer_sink.h

Issue 1942803002: Caching AudioOutputDevice instances in mixer manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make WebAudioSourceProvider to always return real sink info reguardless the client - to avoid behavior change. Created 4 years, 6 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/base/audio_renderer_mixer_unittest.cc ('k') | media/base/fake_audio_renderer_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 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 #ifndef MEDIA_BASE_FAKE_AUDIO_RENDERER_SINK_H_ 5 #ifndef MEDIA_BASE_FAKE_AUDIO_RENDERER_SINK_H_
6 #define MEDIA_BASE_FAKE_AUDIO_RENDERER_SINK_H_ 6 #define MEDIA_BASE_FAKE_AUDIO_RENDERER_SINK_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 11 matching lines...) Expand all
22 kUninitialized, 22 kUninitialized,
23 kInitialized, 23 kInitialized,
24 kStarted, 24 kStarted,
25 kPaused, 25 kPaused,
26 kPlaying, 26 kPlaying,
27 kStopped 27 kStopped
28 }; 28 };
29 29
30 FakeAudioRendererSink(); 30 FakeAudioRendererSink();
31 31
32 explicit FakeAudioRendererSink(const AudioParameters& hardware_params);
33
32 void Initialize(const AudioParameters& params, 34 void Initialize(const AudioParameters& params,
33 RenderCallback* callback) override; 35 RenderCallback* callback) override;
34 void Start() override; 36 void Start() override;
35 void Stop() override; 37 void Stop() override;
36 void Pause() override; 38 void Pause() override;
37 void Play() override; 39 void Play() override;
38 bool SetVolume(double volume) override; 40 bool SetVolume(double volume) override;
39 OutputDeviceInfo GetOutputDeviceInfo() override; 41 OutputDeviceInfo GetOutputDeviceInfo() override;
40 42
41 // Attempts to call Render() on the callback provided to 43 // Attempts to call Render() on the callback provided to
(...skipping 19 matching lines...) Expand all
61 State state_; 63 State state_;
62 RenderCallback* callback_; 64 RenderCallback* callback_;
63 OutputDeviceInfo output_device_info_; 65 OutputDeviceInfo output_device_info_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(FakeAudioRendererSink); 67 DISALLOW_COPY_AND_ASSIGN(FakeAudioRendererSink);
66 }; 68 };
67 69
68 } // namespace media 70 } // namespace media
69 71
70 #endif // MEDIA_BASE_FAKE_AUDIO_RENDERER_SINK_H_ 72 #endif // MEDIA_BASE_FAKE_AUDIO_RENDERER_SINK_H_
OLDNEW
« no previous file with comments | « media/base/audio_renderer_mixer_unittest.cc ('k') | media/base/fake_audio_renderer_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698