define.h
资源名称:AudioWave.rar [点击查看]
上传用户:huifengb
上传日期:2007-12-27
资源大小:334k
文件大小:2k
源码类别:
多媒体
开发平台:
Visual C++
- #ifndef CompileOnce
- #define CompileOnce
- #define MAXENERGYOFSILENCE 1000//350--> this silence can be repeated.this is the best value.
- #define MINENERGYOFNOTVOWEL 1000
- #define MAXZCROFSILENCE 15
- #define MINZCROFCONSONANT 400
- #define MINVOWELLENGTH 50/TIME_FRAME
- #define MYDATA WORD
- #define MINSILENCETIME 100 //ms
- // BaseFrequency by AM
- #define BASEFREQUENCYTHRESHOLD 2
- #define CHANGWIDTH 3
- #define CURRENTHIGHVER 1
- #define CURRENTLOWVER 0
- #define MYDATAFLAG "DLdl"
- #define MINFREQUENCYOFCONSONANT 1000
- #define BESTFUFTHRESHOLD 90
- #define NORMALFUFTHRESHOLD 70
- #define CUSTOMFUFINDEX 2
- #define BESTFUFINDEX 1
- #define NORMALFUFINDEX 0
- //format of wave
- #define WAVE_SAMPLE 11025
- #define WAVE_BITS 16
- #define WAVE_CHANNELS 1
- //timer and it's flag
- #define MY_TIMER_LENGTH 30 //ms
- #define MY_TIMER_ARRIVE 11
- //the length of scrollbar
- #define SCROLLLEN 10000
- #define LINESIZE 1
- //the type of viewing
- #define VIEWWAVE 0
- #define VIEWFREQUENCY 1
- #define VIEWBASEFREQUENCYBYAM 2
- #define VIEWBASEFREQUENCYBYCORRE 3
- #define VIEWZCR 4
- #define VIEWENERGY 5
- #define VIEWFUF 6
- #define VIEWZCRENERGY 7
- #define VIEWCEPSTRUM 8
- #define VIEWNUM 9
- #define TIME_FRAME 10 //(ms)Length of the frame of ZCR and ENERGY
- // the mean of MYDATA
- // bit0,bit1:the type of this block
- // other :length of this block,the max number is 16384
- #define FLAGBITS 2
- #define MYDATA WORD
- #define FLAGSILENCE 0 //flag of silence block
- #define FLAGCONSONANT 1 //flag of consonant block
- #define FLAGC_V 2 //flag of transition between consonant and vowel
- #define FLAGVOWEL 3 //flag of vowel block
- #define FLAGVOWEL1 4 //only used in drawiny different color between two vowel block
- #define FLAGNOTTEST 5 //flag of no_testing
- #define COLORAXIS RGB(255,0,0)
- #define COLORSILENCE RGB(0,0,255)
- #define COLORCONSONANT RGB(0,0,0)
- #define COLORVOWEL RGB(255,255,0)
- #define COLORVOWEL1 RGB(255,255,255)
- #define COLORC_V RGB(0,255,0)
- #define COLORNOTTEST RGB(127,127,127)
- //not used
- #define MINDIFFERENCE 100
- #define DDC_PI (3.14159265358979323846)
- #endif