⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmi_ring_def.h

📁 Resource editor base speadrum Chinese mobile
💻 H
字号:
#ifndef _MMI_RING_DEF_H__
#define _MMI_RING_DEF_H__

#include "sci_types.h"

#ifdef __cplusplus
extern   "C" {
#endif

// 定义铃声的类型
typedef enum _AUD_RING_TYPE_E
{
    AUD_MIDI_RING,          // File format: 
                            //  General Midi file format
                                                        
    AUD_SINGLE_TONE_RING,   // File format(in BigEndian): 
                            //  uint16(type),       // AUD_SINGLE_TONE_RING
                            //  uint16(data_len),   // Number of bytes of ring data
                            //  uint16(freq),   uint16(duration millisecond),
                            //  uint16(freq),   uint16(duration millisecond),
                            //  ......
                            //  uint16(freq),   uint16(duration millisecond)
                                                        
                            // Note: duration = 0xFFFF, means play for ever.
                                            
    AUD_DUAL_TONE_RING,     // File format(in BigEndian):
                            //  uint16(type),       // AUD_DUAL_TONE_RING
                            //  uint16(data_len),   // Number of bytes of ring data
                            //  uint16(freq1),  uint16(freq2),  uint16(duration millisecond),
                            //  uint16(freq1),  uint16(freq2),  uint16(duration millisecond),
                            //  ......
                            //  uint16(freq1),  uint16(freq2),  uint16(duration millisecond)
                            
    AUD_TRIPLE_TONE_RING,   // File format(in BigEndian):
                            //  uint16(type),       // AUD_TRIPLE_TONE_RING
                            //  uint16(data_len),   // Number of bytes of ring data
                            //  uint16(freq1),  uint16(freq2),  uint16(freq3),  uint16(duration millisecond),
                            //  uint16(freq1),  uint16(freq2),  uint16(freq3),  uint16(duration millisecond),
                            //  ......
                            //  uint16(freq1),  uint16(freq2),  uint16(freq3),  uint16(duration millisecond)

    AUD_SMAF_RING,          // File format:
                            //  Defined by Yamaha.
                            
    AUD_WAVE_RING,          // File format:
                            //  wave sound 16bit samples data ,sound sampling rate is 16k                            
                            
    AUD_MP3_RING,          	// File format:
                            //  mp3
                            
    AUD_RING_TYPE_MAX       // Reserved, user can't use it.
} AUD_RING_TYPE_E;

typedef struct _AUD_RING_DATA_INFO_T
{
    AUD_RING_TYPE_E type;
    uint32          data_len;  
	uint8	      * data_ptr;
} MMIAUD_RING_DATA_INFO_T, * PAUD_RING_DATA_INFO_T;

#ifdef __cplusplus
}
#endif

#endif // _MMI_RING_DEF_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -