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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
12 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
13 #include "media/audio/audio_io.h" | 14 #include "media/audio/audio_io.h" |
14 #include "media/base/audio_renderer_sink.h" | 15 #include "media/base/audio_renderer_sink.h" |
15 #include "media/base/media_export.h" | 16 #include "media/base/media_export.h" |
16 | 17 |
17 namespace media { | 18 namespace media { |
18 | 19 |
19 // Wrapper which exposes the browser side audio interface (AudioOutputStream) as | 20 // Wrapper which exposes the browser side audio interface (AudioOutputStream) as |
20 // if it were a renderer side audio interface (AudioRendererSink). Note: This | 21 // if it were a renderer side audio interface (AudioRendererSink). Note: This |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 79 |
79 // The actual AudioOutputStream, must only be accessed on the audio thread. | 80 // The actual AudioOutputStream, must only be accessed on the audio thread. |
80 AudioOutputStream* stream_; | 81 AudioOutputStream* stream_; |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(AudioOutputStreamSink); | 83 DISALLOW_COPY_AND_ASSIGN(AudioOutputStreamSink); |
83 }; | 84 }; |
84 | 85 |
85 } // namepace media | 86 } // namepace media |
86 | 87 |
87 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_ | 88 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_ |
OLD | NEW |