代码搜索结果
找到约 10,000 项符合
Sound 的代码
sound.c
#include "defs.h"
#include "pcm.h"
#include "sound.h"
#include "cpu.h"
#include "hw.h"
#include "regs.h"
#include "noise.h"
const static byte dmgwave[16] =
{
0xac, 0xdd, 0xda, 0x48,
0x36, 0x02,
sound.h
#ifndef __SOUND_H__
#define __SOUND_H__
struct sndchan
{
int on;
unsigned int pos;
int cnt, encnt, swcnt;
int len, enlen, swlen;
int swfreq;
int freq;
int envol, endir;
int mixl, mixr;
sound.pas
unit sound;
interface
uses
windows;
type
TSound=class
public
constructor Create();
destructor destory();
procedure Snd_Write(addr:Word;data:Byte);
function Snd_Read(ad
sound.h
#ifndef __SOUND_h__
#define __SOUND_h__
// write your header here
void PlaySnd(int SndIndex, int DAC_Channel);
#endif
sound.c
void PlaySnd(int SndIndex, int DAC_Channel)
{
extern unsigned long RES_Table;
unsigned long Addr,EndAddr;
unsigned int Ret,Status;
//Addr=RES_48_48K_SA;
Addr = *(&RES_Table + (SndInd