OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |