📄 bwpcm8.h
字号:
/*----------------------------------------------
bwpcm8.h BlueWings PCM driver header
Copyright (C)2001 俙俷俬仚
2001/ 1/ 8 rev0.01
-----------------------------------------------*/
#ifndef _BMPCM8_H_
#define _BMPCM8_H_
#include <sys/sound.h>
/*----------------------------------
PCM MODEs
-----------------------------------*/
#define PCM_ID_WAV 1
#define PCM_ID_X68 2
/*----------------------------------
DEFINEs
-----------------------------------*/
#define PCM_FREQ_12K 1
#define PCM_FREQ_6K 2
#define PCM_FREQ_4K 3
#define PCM_FREQ_3K 4
#define PCM_UP_NONE 0
#define PCM_UP_LINER 1
#define PCM_UP_PARA 2
#define FLG_LOOP 128
#define FLG_PLAY 64
#define FLG_RESTART 32
#define FLG_NEXT 4
/*----------------------------------
BIOS DEFINEs
-----------------------------------*/
#define VOICE_MODE_ON 0x20
#define OUTPUT_INT_ON 0x01
#define OUTPUT_EXT_ON 0x08
#define OUTPUT_VOL_4 0x00
#define OUTPUT_VOL_3 0x02
#define OUTPUT_VOL_2 0x04
#define OUTPUT_VOL_1 0x06
/*----------------------------------
FUNCTIONs
-----------------------------------*/
void near pcm8_open( int pcm_id, int freq_id );
void near pcm8_close(int last_intcall_interval);
int near pcm8_start(int channel, int id, int flag);
int near pcm8_start_mem(int channel, int flag, BYTE far *dat, DWORD size);
void near pcm8_wait(int channel);
void near pcm8_stop(int channel);
unsigned near pcm8_read_status(int channel);
unsigned near pcm8_read_loop_count(int channel);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -