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

📄 eqgrphcs.h

📁 声音均衡器的源代码程序
💻 H
字号:
/* EQGRPHCS.H
 * Phimal Graphics Definitions and Declarations
 *
 * Kamal Swamidoss
 * 28 August 1996
 */
#include <graphics.h>

#define    home_x     140
#define    home_y     360

/* some key definitions
 * Note that a key value is actually '\0' followed by an integer
 * listed below.
 */
#define    UP         72
#define    DOWN       80
#define    RIGHT      77
#define    LEFT       75
#define    PG_UP      73
#define    PG_DN      81

/* a description of the equalizer */
#define    NUM_BANDS  5
#define    MAX_GAIN   10
#define    MIN_GAIN   0

/* some command codes this application uses internally */
#define	  BASE		 18000
#define    UP_1       3000
#define    DN_1       -3000
#define    RT_1       0x0300
#define    LT_1       0x0400
#define    EDONE      0xF000
#define    NOP        0xF100

/* the application color scheme */
#define MY_HIGHCOLOR   LIGHTBLUE
#define MY_LOWCOLOR    BLUE
#define MY_BKGDCOLOR   BLACK
#define MY_EQ_BOXCOLOR BLUE
#define MY_TG_BOXCOLOR BLUE
#define MY_TGCOLOR     WHITE
#define MY_LOGOCOLOR   WHITE
#define MY_FRAMECOLOR  BLUE
#define MY_XCOLOR      LIGHTBLUE
#define MY_YCOLOR      LIGHTBLUE

/* the locations of screen elements */
#define EQ_BOX_X1 140
#define EQ_BOX_X2 500
#define EQ_BOX_Y1 200
#define EQ_BOX_Y2 296
#define BAR_WIDTH (EQ_BOX_X2-EQ_BOX_X1)/(NUM_BANDS+1)/6
#define TG_WINDOW_SIZE 64
#define TG_BOX_X1 640/2-TG_WINDOW_SIZE*x_scale/2
#define TG_BOX_X2 640/2+TG_WINDOW_SIZE*x_scale/2
#define TG_BOX_Y1 EQ_BOX_Y2+35
#define TG_BOX_Y2 460
#define FG_WINDOW_SIZE PAGE_SIZE
#define FG_BOX_X1 640/2-FG_WINDOW_SIZE/2
#define FG_BOX_X2 640/2+FG_WINDOW_SIZE/2
#define FG_BOX_Y1 EQ_BOX_Y2+35
#define FG_BOX_Y2 400

/* Uncomment the following #define to bypass initialization with the
 * EVM. This is useful for debugging the user interface.
 */
/* #define DEBUG_MODE */

int  init_graphics(void);
void close_graphics(void);
void update(int);
void highlight(int,int);
void unhighlight(int,int,int);
void error_message(char *);

⌨️ 快捷键说明

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