samples.h

来自「这个是延伸mame的在wince平台下的游戏模拟器的代码」· C头文件 代码 · 共 24 行

H
24
字号
#ifndef SAMPLES_H
#define SAMPLES_H

struct Samplesinterface
{
	int channels;	/* number of discrete audio channels needed */
};


/* Start one of the samples loaded from disk. Note: channel must be in the range */
/* 0 .. Samplesinterface->channels-1. It is NOT the discrete channel to pass to */
/* osd_play_sample() */
void sample_start(int channel,int samplenum,int loop);
void sample_adjust(int channel,int freq,int volume);
void sample_stop(int channel);
int sample_playing(int channel);


int samples_sh_start(struct Samplesinterface *interface);
void samples_sh_stop(void);
void samples_sh_update(void);

#endif

⌨️ 快捷键说明

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