OLD | NEW |
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_AUDIO_OUTPUT_IPC_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ |
6 #define MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ | 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 // Starts playing the stream. This should generate a call to | 91 // Starts playing the stream. This should generate a call to |
92 // AudioOutputController::Play(). | 92 // AudioOutputController::Play(). |
93 virtual void PlayStream() = 0; | 93 virtual void PlayStream() = 0; |
94 | 94 |
95 // Pauses an audio stream. This should generate a call to | 95 // Pauses an audio stream. This should generate a call to |
96 // AudioOutputController::Pause(). | 96 // AudioOutputController::Pause(). |
97 virtual void PauseStream() = 0; | 97 virtual void PauseStream() = 0; |
98 | 98 |
99 // Closes the audio stream which should shut down the corresponding | 99 // Closes the audio stream which should shut down the corresponding |
100 // AudioOutputController in the peer process. | 100 // AudioOutputController in the peer process. Usage of an AudioOutputIPC must |
| 101 // always end with a call to CloseStream(), and the |delegate| passed to other |
| 102 // method must remain valid until then. An exception is if OnIPCClosed is |
| 103 // called first. |
101 virtual void CloseStream() = 0; | 104 virtual void CloseStream() = 0; |
102 | 105 |
103 // Sets the volume of the audio stream. | 106 // Sets the volume of the audio stream. |
104 virtual void SetVolume(double volume) = 0; | 107 virtual void SetVolume(double volume) = 0; |
105 }; | 108 }; |
106 | 109 |
107 } // namespace media | 110 } // namespace media |
108 | 111 |
109 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ | 112 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ |
OLD | NEW |