#define MM_AUDIO_EFFECT_EQ_BAND_NUM_MAX 10
#define MM_AUDIO_EFFECT_CUSTOM_LEVEL_INIT 0
+#define MM_AUDIO_EFFECT_SQUARE_VALUE_MAX 4
+#define MM_AUDIO_EFFECT_SQUARE_VALUE_MIN 0
+
/**
@addtogroup PLAYER_INTERNAL
MM_AUDIO_EFFECT_PRESET_HIPHOP, /**< Preset type HipHop */
MM_AUDIO_EFFECT_PRESET_RNB, /**< Preset type R&B */
MM_AUDIO_EFFECT_PRESET_FLAT, /**< Preset type Flat */
+ MM_AUDIO_EFFECT_PRESET_TUBE, /**< Preset type Tube */
+ MM_AUDIO_EFFECT_PRESET_VIRT71, /**< Preset type Virtual 7.1 */
+ MM_AUDIO_EFFECT_PRESET_STUDIO, /**< Preset type Studio */
+ MM_AUDIO_EFFECT_PRESET_CLUB, /**< Preset type Club */
MM_AUDIO_EFFECT_PRESET_NUM, /**< Number of Preset type */
-} MMAudioEffectPresetType;
+} mm_audio_effect_preset_type_e;
/**
* Enumerations of Audio Effect Custom Type
MM_AUDIO_EFFECT_CUSTOM_REVERB_LEVEL, /**< Custom type Reverb Level */
MM_AUDIO_EFFECT_CUSTOM_CLARITY, /**< Custom type Clarity */
MM_AUDIO_EFFECT_CUSTOM_NUM, /**< Number of Custom type */
-} MMAudioEffectCustomType;
+} mm_audio_effect_custom_type_e;
/**
* Enumerations of Audio Effect Type
MM_AUDIO_EFFECT_TYPE_NONE,
MM_AUDIO_EFFECT_TYPE_PRESET,
MM_AUDIO_EFFECT_TYPE_CUSTOM,
-} MMAudioEffectType;
+ MM_AUDIO_EFFECT_TYPE_SQUARE,
+} mm_audio_effect_type_e;
/**
*/
typedef enum {
MM_AUDIO_EFFECT_OUTPUT_SPK, /**< Speaker out */
- MM_AUDIO_EFFECT_OUTPUT_EAR /**< Earjack out */
-} MMAudioEffectOutputMode;
+ MM_AUDIO_EFFECT_OUTPUT_EAR, /**< Earjack out */
+ MM_AUDIO_EFFECT_OUTPUT_OTHERS, /**< MIRRORING out */
+ MM_AUDIO_EFFECT_OUTPUT_BT,
+ MM_AUDIO_EFFECT_OUTPUT_DOCK,
+ MM_AUDIO_EFFECT_OUTPUT_MULTIMEDIA_DOCK,
+ MM_AUDIO_EFFECT_OUTPUT_USB_AUDIO,
+ MM_AUDIO_EFFECT_OUTPUT_HDMI,
+ MM_AUDIO_EFFECT_OUTPUT_NUM
+} mm_audio_effect_output_mode_e;
/**
* Structure of AudioEffectInfo
*/
typedef struct {
- MMAudioEffectType effect_type; /**< effect type, (NONE,PRESET,CUSTOM)*/
- MMAudioEffectPresetType preset; /**< for preset type*/
+ mm_audio_effect_type_e effect_type; /**< effect type, (NONE,PRESET,CUSTOM)*/
+ mm_audio_effect_preset_type_e preset; /**< for preset type*/
int *custom_ext_level_for_plugin; /**< for custom type, level value list of Extension effects*/
int custom_eq_level[MM_AUDIO_EFFECT_EQ_BAND_NUM_MAX]; /**< for custom type, EQ info*/
int custom_ext_level[MM_AUDIO_EFFECT_CUSTOM_NUM-1]; /**< for custom type, Extension effect info*/
-} MMAudioEffectInfo;
+ int square_row; /**< for square type, square row configure*/
+ int square_col; /**< for square type, square col configure*/
+} mm_audio_effect_info_t;
/**
* @return True to continue with the next iteration of the loop, False to break out of the loop.
* @see mm_player_get_foreach_present_supported_effect_type()
*/
-typedef bool (*mmplayer_supported_audio_effect_cb) (int effect_type, int type, void *user_data);
+typedef bool (*mmplayer_supported_audio_effect_cb)(int effect_type, int type, void *user_data);
/**
* This function is to get supported effect type.
* @see
* @since
*/
-int mm_player_get_foreach_present_supported_effect_type(MMHandleType player, MMAudioEffectType effect_type, mmplayer_supported_audio_effect_cb foreach_cb, void *user_data);
+int mm_player_get_foreach_present_supported_effect_type(MMHandleType player, mm_audio_effect_type_e effect_type, mmplayer_supported_audio_effect_cb foreach_cb, void *user_data);
/**
* This function is to bypass audio effect.
* @see
* @since
*/
-int mm_player_audio_effect_bypass (MMHandleType hplayer);
-
-/**
- * This function is to apply preset effect.
- *
- * @param hplayer [in] Handle of player.
- * @param type [in] Preset type effect.
- *
- * @return This function returns zero on success, or negative value with error code.
- *
- * @remark
- * @see MMAudioEffectPresetType
- * @since
- */
-int mm_player_audio_effect_preset_apply(MMHandleType hplayer, MMAudioEffectPresetType type);
+int mm_player_audio_effect_bypass(MMHandleType hplayer);
/**
* This function is to apply custom effect(Equalizer and Extension effects).
* @return This function returns zero on success, or negative value with error code.
*
* @remark
- * @see MMAudioEffectCustomType
+ * @see mm_audio_effect_custom_type_e
* @since
*/
-int mm_player_audio_effect_custom_get_level(MMHandleType hplayer, MMAudioEffectCustomType type, int eq_index, int *level);
+int mm_player_audio_effect_custom_get_level(MMHandleType hplayer, mm_audio_effect_custom_type_e type, int eq_index, int *level);
/**
* This function is to get range of the level of the custom effect.
* @return This function returns zero on success, or negative value with error code.
*
* @remark
- * @see MMAudioEffectCustomType
+ * @see mm_audio_effect_custom_type_e
* @since
*/
-int mm_player_audio_effect_custom_get_level_range(MMHandleType hplayer, MMAudioEffectCustomType type, int *min, int *max);
+int mm_player_audio_effect_custom_get_level_range(MMHandleType hplayer, mm_audio_effect_custom_type_e type, int *min, int *max);
/**
* This function is to set the level of the custom effect.
* @return This function returns zero on success, or negative value with error code.
*
* @remark
- * @see MMAudioEffectCustomType
+ * @see mm_audio_effect_custom_type_e
* @since
*/
-int mm_player_audio_effect_custom_set_level(MMHandleType hplayer, MMAudioEffectCustomType effect_custom_type, int eq_index, int level);
+int mm_player_audio_effect_custom_set_level(MMHandleType hplayer, mm_audio_effect_custom_type_e effect_custom_type, int eq_index, int level);
/**
* This function is to set the bands level of equalizer custom effect using input list.
int mm_player_audio_effect_custom_set_level_eq_from_list(MMHandleType hplayer, int *level_list, int size);
/**
- * This function is to decide if the preset type effect is supported or not
- *
- * @param hplayer [in] Handle of player.
- * @param effect [in] Preset type effect.
- *
- * @return This function returns zero on success, or negative value with error code.
- *
- * @remark
- * @see
- * @since
+ * This function is to check whether the setting preset type effect is available or not
*/
-int mm_player_is_supported_preset_effect_type(MMHandleType hplayer, MMAudioEffectPresetType effect);
+int mm_player_is_available_preset_effect(MMHandleType hplayer, mm_audio_effect_preset_type_e effect, bool *available);
/**
- * This function is to decide if the custom type effect is supported or not
- *
- * @param hplayer [in] Handle of player.
- * @param effect [in] Custom type effect.
- *
- * @return This function returns zero on success, or negative value with error code.
- *
- * @remark
- * @see
- * @since
+ * This function is to check whether the setting custom type effect is available or not
*/
-int mm_player_is_supported_custom_effect_type(MMHandleType hplayer, MMAudioEffectCustomType effect);
+int mm_player_is_available_custom_effect(MMHandleType hplayer, mm_audio_effect_custom_type_e effect, bool *available);
/**
@}