Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: content/common/media/audio_messages.h

Issue 1769933002: Looking up device id by session id for AudioRendererMixerInput (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // IPC messages for the audio. 5 // IPC messages for the audio.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 30 matching lines...) Expand all
41 IPC_STRUCT_MEMBER(media::AudioParameters, params) 41 IPC_STRUCT_MEMBER(media::AudioParameters, params)
42 IPC_STRUCT_MEMBER(bool, automatic_gain_control) 42 IPC_STRUCT_MEMBER(bool, automatic_gain_control)
43 IPC_STRUCT_MEMBER(uint32_t, shared_memory_count) 43 IPC_STRUCT_MEMBER(uint32_t, shared_memory_count)
44 IPC_STRUCT_END() 44 IPC_STRUCT_END()
45 45
46 // Messages sent from the browser to the renderer. 46 // Messages sent from the browser to the renderer.
47 47
48 // Tell the renderer process that an audio output device has been authorized 48 // Tell the renderer process that an audio output device has been authorized
49 // for a given stream. The renderer is given the output parameters for the 49 // for a given stream. The renderer is given the output parameters for the
50 // authorized device. 50 // authorized device.
51 IPC_MESSAGE_CONTROL3(AudioMsg_NotifyDeviceAuthorized, 51 IPC_MESSAGE_CONTROL4(AudioMsg_NotifyDeviceAuthorized,
52 int /* stream id */, 52 int /* stream id */,
53 media::OutputDeviceStatus /* device_status */, 53 media::OutputDeviceStatus /* device_status */,
54 media::AudioParameters /* output parameters */) 54 media::AudioParameters /* output parameters */,
55 std::string /* matched_device_id */)
55 56
56 // Tell the renderer process that an audio stream has been created. 57 // Tell the renderer process that an audio stream has been created.
57 // The renderer process is given a shared memory handle for the audio data 58 // The renderer process is given a shared memory handle for the audio data
58 // buffer it shares with the browser process. It is also given a SyncSocket that 59 // buffer it shares with the browser process. It is also given a SyncSocket that
59 // it uses to communicate with the browser process about the state of the 60 // it uses to communicate with the browser process about the state of the
60 // buffered audio data. 61 // buffered audio data.
61 IPC_MESSAGE_CONTROL4( 62 IPC_MESSAGE_CONTROL4(
62 AudioMsg_NotifyStreamCreated, 63 AudioMsg_NotifyStreamCreated,
63 int /* stream id */, 64 int /* stream id */,
64 base::SharedMemoryHandle /* handle */, 65 base::SharedMemoryHandle /* handle */,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Set audio volume of the stream specified by stream_id. 142 // Set audio volume of the stream specified by stream_id.
142 // TODO(hclam): change this to vector if we have channel numbers other than 2. 143 // TODO(hclam): change this to vector if we have channel numbers other than 2.
143 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, 144 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume,
144 int /* stream_id */, 145 int /* stream_id */,
145 double /* volume */) 146 double /* volume */)
146 147
147 // Set audio volume of the input stream specified by stream_id. 148 // Set audio volume of the input stream specified by stream_id.
148 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, 149 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume,
149 int /* stream_id */, 150 int /* stream_id */,
150 double /* volume */) 151 double /* volume */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698