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

📄 tl_sb.h

📁 DC上的GB模拟器源代码
💻 H
字号:
/*
** thinlib (c) 2001 Matthew Conte (matt@conte.com)
**
**
** tl_sb.h
**
** DOS Sound Blaster header file
**
** $Id: $
*/

#ifndef _TL_SB_H_
#define _TL_SB_H_

typedef void (*sbmix_t)(void *user_data, void *buffer, int size);

/* Sample format bitfields */
#define  SB_FORMAT_8BIT       0x00
#define  SB_FORMAT_16BIT      0x01
#define  SB_FORMAT_MONO       0x00
#define  SB_FORMAT_STEREO     0x02
#define  SB_FORMAT_UNSIGNED   0x00
#define  SB_FORMAT_SIGNED     0x04

extern int  thin_sb_init(int *sample_rate, int *buf_size, int *format);
extern void thin_sb_shutdown(void);
extern int  thin_sb_start(sbmix_t fillbuf, void *user_data);
extern void thin_sb_stop(void);
extern void thin_sb_setrate(int rate);

#endif /* !_TL_SB_H_ */

/*
** $Log: $
*/

⌨️ 快捷键说明

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