OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 PPAPI_C_DEV_PPB_AUDIO_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_AUDIO_DEV_H_ |
6 #define PPAPI_C_DEV_PPB_AUDIO_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_AUDIO_DEV_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_module.h" | 10 #include "ppapi/c/pp_module.h" |
11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
12 #include "ppapi/c/pp_stdint.h" | 12 #include "ppapi/c/pp_stdint.h" |
13 | 13 |
14 #define PPB_AUDIO_DEV_INTERFACE "PPB_Audio(Dev);0.4" | 14 #define PPB_AUDIO_DEV_INTERFACE "PPB_Audio(Dev);0.4" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // while playback is already in progress, will return PP_TRUE and be a no-op. | 62 // while playback is already in progress, will return PP_TRUE and be a no-op. |
63 // On error, return PP_FALSE. | 63 // On error, return PP_FALSE. |
64 PP_Bool (*StartPlayback)(PP_Resource audio); | 64 PP_Bool (*StartPlayback)(PP_Resource audio); |
65 | 65 |
66 // Stop the playback. If playback is already stopped, this is a no-op and | 66 // Stop the playback. If playback is already stopped, this is a no-op and |
67 // returns PP_TRUE. On error, returns PP_FALSE. If a callback is in progress, | 67 // returns PP_TRUE. On error, returns PP_FALSE. If a callback is in progress, |
68 // StopPlayback will block until callback completes. | 68 // StopPlayback will block until callback completes. |
69 PP_Bool (*StopPlayback)(PP_Resource audio); | 69 PP_Bool (*StopPlayback)(PP_Resource audio); |
70 }; | 70 }; |
71 | 71 |
72 #endif // PPAPI_C_DEV_PPB_DEVICE_CONTEXT_AUDIO_DEV_H_ | 72 #endif /* PPAPI_C_DEV_PPB_DEVICE_CONTEXT_AUDIO_DEV_H_ */ |
| 73 |
OLD | NEW |