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

Side by Side Diff: ppapi/api/trusted/ppb_audio_input_trusted_dev.idl

Issue 8138008: Implementation of ppapi audio. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5 /**
6 * This file defines the trusted audio input interface.
7 */
8
9 label Chrome {
10 M17 = 0.1
11 };
12
13 /**
14 * This interface is to be used by proxy implementations. All
15 * functions should be called from the main thread only. The
16 * resource returned is an Audio input esource; most of the PPB_Audio
17 * interface is also usable on this resource.
18 */
19 [version=0.1, macro="PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE"]
20 interface PPB_AudioInputTrusted_Dev {
21 /** Returns an audio input resource. */
22 PP_Resource CreateTrusted(
23 [in] PP_Instance instance);
24
25 /**
26 * Opens a paused audio interface, used by trusted side of proxy.
27 * Returns PP_ERROR_WOULD_BLOCK on success, and invokes
28 * the |create_callback| asynchronously to complete.
29 * As this function should always be invoked from the main thread,
30 * do not use the blocking variant of PP_CompletionCallback.
31 */
32 int32_t Open(
33 [in] PP_Resource audio_input,
34 [in] PP_Resource config,
35 [in] PP_CompletionCallback create_callback);
36
37 /**
38 * Get the sync socket. Use once Open has completed.
39 * Returns PP_OK on success.
40 */
41 int32_t GetSyncSocket(
42 [in] PP_Resource audio_input,
43 [out] handle_t sync_socket);
44
45 /**
46 * Get the shared memory interface. Use once Open has completed.
47 * Returns PP_OK on success.
48 */
49 int32_t GetSharedMemory(
50 [in] PP_Resource audio_input,
51 [out] handle_t shm_handle,
52 [out] uint32_t shm_size);
53
54 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698