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_INPUT_IPC_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_INPUT_IPC_H_ |
6 #define MEDIA_AUDIO_AUDIO_INPUT_IPC_H_ | 6 #define MEDIA_AUDIO_AUDIO_INPUT_IPC_H_ |
7 | 7 |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "base/sync_socket.h" | 9 #include "base/sync_socket.h" |
10 #include "media/audio/audio_parameters.h" | 10 #include "media/audio/audio_parameters.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual void RecordStream(int stream_id) = 0; | 88 virtual void RecordStream(int stream_id) = 0; |
89 | 89 |
90 // Sets the volume of the audio stream. | 90 // Sets the volume of the audio stream. |
91 virtual void SetVolume(int stream_id, double volume) = 0; | 91 virtual void SetVolume(int stream_id, double volume) = 0; |
92 | 92 |
93 // Closes the audio stream and deletes the matching AudioInputController | 93 // Closes the audio stream and deletes the matching AudioInputController |
94 // instance. Prior to deleting the AudioInputController object, a call to | 94 // instance. Prior to deleting the AudioInputController object, a call to |
95 // AudioInputController::Close must be made. | 95 // AudioInputController::Close must be made. |
96 virtual void CloseStream(int stream_id) = 0; | 96 virtual void CloseStream(int stream_id) = 0; |
97 | 97 |
98 protected: | 98 protected: |
99 virtual ~AudioInputIPC(); | 99 virtual ~AudioInputIPC(); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace media | 102 } // namespace media |
103 | 103 |
104 #endif // MEDIA_AUDIO_AUDIO_INPUT_IPC_H_ | 104 #endif // MEDIA_AUDIO_AUDIO_INPUT_IPC_H_ |
OLD | NEW |