SoundEffect.h
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:7k
源码类别:
MTK
开发平台:
C/C++
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2005
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*****************************************************************************
- *
- * Filename:
- * ---------
- * SoundEffect.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * This file is the header file of sound effect setup.
- *
- * Author:
- * -------
- * Tim Chen
- *
- *============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * $Log$
- *
- * removed!
- * removed!
- *
- *
- * removed!
- * removed!
- *
- *
- * removed!
- * removed!
- *
- *
- * removed!
- * removed!
- *
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *============================================================================
- ****************************************************************************/
- #ifndef _SOUND_EFFECT_H_
- #define _SOUND_EFFECT_H_
- #define MAX_EQUALIZER_NUM 8 /* double check if NVRAM_EF_AUDIO_EQUALIZER_COUNT == MAX_EQUALIZER_NUM */
- #define NUM_OF_BARS_IN_A_SETTING 8
- #define UPPER_LIMIT_SOUND_LEVEL 1270
- #define LOWER_LIMIT_SOUND_LEVEL -1280
- #define SETTING_NAME_MAX_LEN 23
- typedef enum
- {
- AUDIO_MIC_IN_CALL,
- AUDIO_MIC_APP,
- AUDIO_MIC_SET_NUM
- } AUDIO_MIC_SET_ENUM;
- typedef struct
- {
- S16 count;
- S16 index;
- signed char magnitude[MAX_EQUALIZER_NUM][NUM_OF_BARS_IN_A_SETTING];
- unsigned char setting_name[MAX_EQUALIZER_NUM + 1][(SETTING_NAME_MAX_LEN + 1) *ENCODING_LENGTH];
- } audio_equalizer_struct;
- #ifdef __MMI_EDITABLE_AUDIO_EQUALIZER__
- typedef struct
- {
- S16 sound_level[NUM_OF_BARS_IN_A_SETTING];
- U8 active_bar;
- } equalizer_setting_info;
- #endif /* __MMI_EDITABLE_AUDIO_EQUALIZER__ */
- typedef struct
- {
- unsigned char levels[AUDIO_MIC_SET_NUM];
- } audio_mic_volume_struct;
- extern audio_equalizer_struct g_settings_audio_equalizer;
- extern void InitSoundEffect(void);
- extern void mmi_settings_sound_effect_highlight_hdlr(void);
- extern void mmi_settings_entry_sound_effect_list(void);
- #if defined(__MMI_AUDIO_EQUALIZER__)
- extern void mmi_settings_read_audio_equalizer_from_nvram(audio_equalizer_struct *audio_equalizer_p);
- extern void mmi_settings_write_audio_equalizer_to_nvram(audio_equalizer_struct *audio_equalizer_p);
- extern void mmi_settings_select_audio_equalizer(S16 index);
- extern void mmi_settings_audio_equalizer_highlight_hdlr(void);
- extern void mmi_settings_audio_equalizer_hint_hdlr(U16 index);
- extern void mmi_settings_entry_audio_equalizer_list(void);
- extern void mmi_settings_audio_equalizer_list_highlight_hdlr(S32 index);
- extern void mmi_settings_audio_equalizer_list_LSK_hdlr(void);
- #endif /* defined(__MMI_AUDIO_EQUALIZER__) */
- extern void mmi_settings_read_audio_mic_volume_from_nvram(audio_mic_volume_struct *audio_mic_volume_p);
- extern void mmi_settings_write_audio_mic_volume_to_nvram(audio_mic_volume_struct *audio_mic_volume_p);
- #ifdef __MMI_EDITABLE_AUDIO_EQUALIZER__
- extern void mmi_settings_audio_equalizer_restore_factory_default(void);
- extern void mmi_settings_entry_audio_equalizer_setting_options(void);
- extern void mmi_settings_audio_equalizer_opt_select_highlight_hdlr(void);
- extern void mmi_settings_audio_equalizer_opt_edit_highlight_hdlr(void);
- extern void mmi_settings_audio_equalizer_opt_rename_highlight_hdlr(void);
- /* select functions */
- extern void mmi_settings_audio_equalizer_setting_select(void);
- /* editing functions */
- extern void mmi_settings_entry_audio_equalizer_setting_edit(void);
- extern U8 mmi_settings_audio_equalizer_delete_history_hdlr(void *in_param);
- extern void mmi_settings_audio_equalizer_setting_edit_RSK_hdlr(void);
- extern void mmi_settings_audio_equalizer_activate_previous_bar(void);
- extern void mmi_settings_audio_equalizer_activate_next_bar(void);
- extern void mmi_settings_audio_equalizer_increment_sound_level(void);
- extern void mmi_settings_audio_equalizer_decrement_sound_level(void);
- extern void mmi_settings_audio_equalizer_save_values(void);
- /* renaming functions */
- extern void mmi_settings_entry_audio_equalizer_setting_rename(void);
- extern void mmi_settings_entry_audio_equalizer_setting_name_edit_option(void);
- extern void mmi_settings_audio_equalizer_setting_name_edit_option_highlight_hdlr(S32 index);
- extern void mmi_settings_audio_equalizer_setting_name_edit_option_LSK(void);
- #ifdef __MMI_TOUCH_SCREEN__
- extern void mmi_settings_audio_equalizer_change_sound_level(S16 change);
- #endif
- #endif /* __MMI_EDITABLE_AUDIO_EQUALIZER__ */
- #endif /* _SOUND_EFFECT_H_ */