m6585.h
来自「十七种模拟器源代码 非常有用的作课程设计不可缺少的」· C头文件 代码 · 共 55 行
H
55 行
/******************************************************************************//* *//* M6585 - ANOTHER ADPCM PLAYBACK CHIP :) *//* *//******************************************************************************/#ifndef __M6585_H__#define __M6585_H__#define M6585BF_MAX (1)#define M6585BF_CHANNEL (1)#define M6585BF_NUMBUF (1)typedef struct M6585_ROM{ UINT8 *data; // pointer to rom UINT32 size; // size of rom} M6585_ROM;struct M6585_interface{ UINT32 num; // number of chips UINT32 sample_rate[M6585BF_MAX]; // rate for each chip M6585_ROM *rom[M6585BF_MAX]; // list of roms};typedef struct M6585_SAMPLE{ UINT32 len; // length (in samples?) UINT8 *data; // sample data (16 bit?)} M6585_SAMPLE;typedef struct M6585rec{ UINT32 rate; // rate UINT32 offset, req_len; UINT8 *req_buf; UINT8 command[8]; UINT32 add; UINT32 banks; // sample bank count UINT32 current_bank; // current sample bank M6585_SAMPLE *sample_decode; // decoded info} M6585Rec;int M6585buffer_sh_start(struct M6585_interface *interface);void M6585buffer_sh_stop(void);void M6585buffer_bank_write(int num, int bank);void M6585buffer_request(int num, int offset, int data);int M6585buffer_status(int num);void M6585buffer_UpdateOne(int num, void *buffer, int length);#endif/******************************************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?