File:  [Generator SEGA Genesis emulator] / generator / sn76496 / sn76496.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed Mar 4 04:46:46 2020 UTC (6 years, 4 months ago) by root
Branches: MAIN, JamesPonder
CVS tags: v0_35, v0_34, v0_33, HEAD
0.33

#ifndef SN76496_H
#define SN76496_H

#define MAX_76496 1

struct SN76496
{
  int SampleRate;
  unsigned int UpdateStep;
  int VolTable[16];             /* volume table */
  int Register[8];              /* registers */
  int LastRegister;             /* last register written */
  int Volume[4];                /* volume of voice 0-2 and noise */
  unsigned int RNG;             /* noise generator */
  int NoiseFB;                  /* noise feedback mask */
  int Period[4];
  int Count[4];
  int Output[4];
};

extern struct SN76496 sn[MAX_76496];

int SN76496Init(int chip, int clock, int gain, int sample_rate);
void SN76496Write(int chip, int data);
void SN76496Update(int chip, uint16 *buffer, int length);

#endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.