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

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

Issue 1809093003: Moving SwitchOutputDevice out of OutputDevice interface, eliminating OutputDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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_ipc.h ('k') | media/audio/audio_output_stream_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_AUDIO_OUTPUT_STREAM_SINK_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_
6 #define MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_ 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
32 AudioOutputStreamSink(); 32 AudioOutputStreamSink();
33 33
34 // RestartableAudioRendererSink implementation. 34 // RestartableAudioRendererSink implementation.
35 void Initialize(const AudioParameters& params, 35 void Initialize(const AudioParameters& params,
36 RenderCallback* callback) override; 36 RenderCallback* callback) override;
37 void Start() override; 37 void Start() override;
38 void Stop() override; 38 void Stop() override;
39 void Pause() override; 39 void Pause() override;
40 void Play() override; 40 void Play() override;
41 bool SetVolume(double volume) override; 41 bool SetVolume(double volume) override;
42 OutputDevice* GetOutputDevice() override; 42 OutputDeviceInfo GetOutputDeviceInfo() override;
43 43
44 // AudioSourceCallback implementation. 44 // AudioSourceCallback implementation.
45 int OnMoreData(AudioBus* dest, 45 int OnMoreData(AudioBus* dest,
46 uint32_t total_bytes_delay, 46 uint32_t total_bytes_delay,
47 uint32_t frames_skipped) override; 47 uint32_t frames_skipped) override;
48 void OnError(AudioOutputStream* stream) override; 48 void OnError(AudioOutputStream* stream) override;
49 49
50 private: 50 private:
51 ~AudioOutputStreamSink() override; 51 ~AudioOutputStreamSink() override;
52 void ClearCallback(); 52 void ClearCallback();
(...skipping 28 matching lines...) Expand all
81 81
82 // The actual AudioOutputStream, must only be accessed on the audio thread. 82 // The actual AudioOutputStream, must only be accessed on the audio thread.
83 AudioOutputStream* stream_; 83 AudioOutputStream* stream_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(AudioOutputStreamSink); 85 DISALLOW_COPY_AND_ASSIGN(AudioOutputStreamSink);
86 }; 86 };
87 87
88 } // namepace media 88 } // namepace media
89 89
90 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_ 90 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_ipc.h ('k') | media/audio/audio_output_stream_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698