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/memory/shared_memory.h" | 8 #include "base/memory/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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // Sends a request to create an AudioInputController object in the peer | 64 // Sends a request to create an AudioInputController object in the peer |
65 // process, and configures it to use the specified audio |params|. The | 65 // process, and configures it to use the specified audio |params|. The |
66 // |total_segments| indidates number of equal-lengthed segments in the shared | 66 // |total_segments| indidates number of equal-lengthed segments in the shared |
67 // memory buffer. Once the stream has been created, the implementation will | 67 // memory buffer. Once the stream has been created, the implementation will |
68 // notify |delegate| by calling OnStreamCreated(). | 68 // notify |delegate| by calling OnStreamCreated(). |
69 virtual void CreateStream(AudioInputIPCDelegate* delegate, | 69 virtual void CreateStream(AudioInputIPCDelegate* delegate, |
70 int session_id, | 70 int session_id, |
71 const AudioParameters& params, | 71 const AudioParameters& params, |
72 bool automatic_gain_control, | 72 bool automatic_gain_control, |
73 uint32 total_segments) = 0; | 73 uint32_t total_segments) = 0; |
74 | 74 |
75 // Corresponds to a call to AudioInputController::Record() on the server side. | 75 // Corresponds to a call to AudioInputController::Record() on the server side. |
76 virtual void RecordStream() = 0; | 76 virtual void RecordStream() = 0; |
77 | 77 |
78 // Sets the volume of the audio stream. | 78 // Sets the volume of the audio stream. |
79 virtual void SetVolume(double volume) = 0; | 79 virtual void SetVolume(double volume) = 0; |
80 | 80 |
81 // Closes the audio stream, which should shut down the corresponding | 81 // Closes the audio stream, which should shut down the corresponding |
82 // AudioInputController in the peer process. | 82 // AudioInputController in the peer process. |
83 virtual void CloseStream() = 0; | 83 virtual void CloseStream() = 0; |
84 }; | 84 }; |
85 | 85 |
86 } // namespace media | 86 } // namespace media |
87 | 87 |
88 #endif // MEDIA_AUDIO_AUDIO_INPUT_IPC_H_ | 88 #endif // MEDIA_AUDIO_AUDIO_INPUT_IPC_H_ |
OLD | NEW |