Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppb_audio_config_samsung.h
Go to the documentation of this file.
1 /* Copyright (c) 2017 Samsung Electronics. All rights reserved.
2  */
3 
4 /* From samsung/ppb_audio_config_samsung.idl,
5  * modified Mon Oct 23 16:05:56 2017.
6  */
7 
8 #ifndef PPAPI_C_SAMSUNG_PPB_AUDIO_CONFIG_SAMSUNG_H_
9 #define PPAPI_C_SAMSUNG_PPB_AUDIO_CONFIG_SAMSUNG_H_
10 
11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/pp_stdint.h"
14 
15 #define PPB_AUDIO_CONFIG_SAMSUNG_INTERFACE_1_0 "PPB_AudioConfig_Samsung;1.0"
16 #define PPB_AUDIO_CONFIG_SAMSUNG_INTERFACE \
17  PPB_AUDIO_CONFIG_SAMSUNG_INTERFACE_1_0
18 
33 typedef enum {
34  /*
35  * Platform will try to detect the most suitable mode for a plugin.
36  */
37  PP_AUDIOMODE_AUTO = 0,
38  PP_AUDIOMODE_GAME = 1,
39  PP_AUDIOMODE_MUSIC = 2,
40  PP_AUDIOMODE_LAST = PP_AUDIOMODE_MUSIC
41 } PP_AudioMode;
42 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_AudioMode, 4);
68  int32_t (*SetAudioMode)(PP_Resource resource, PP_AudioMode audio_mode);
69 };
70 
76 #endif /* PPAPI_C_SAMSUNG_PPB_AUDIO_CONFIG_SAMSUNG_H_ */
77 
Definition: ppb_audio_config_samsung.h:55
int32_t(* SetAudioMode)(PP_Resource resource, PP_AudioMode audio_mode)
Definition: ppb_audio_config_samsung.h:68
int32_t PP_Resource
Definition: pp_resource.h:40
PP_AudioMode
Definition: ppb_audio_config_samsung.h:33