ea1a60faa3
git-svn-id: svn://kolibrios.org@9837 a494cfbc-eb01-0410-851d-a64ba20cac60
41 lines
951 B
C
41 lines
951 B
C
#ifndef SN76496_H
|
|
#define SN76496_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
#define SN76496_H_BEGIN_ extern "C" {
|
|
#define SN76496_H_END_ }
|
|
#else
|
|
#define SN76496_H_BEGIN_
|
|
#define SN76496_H_END_
|
|
#endif
|
|
|
|
SN76496_H_BEGIN_
|
|
|
|
#define MAX_76496 4
|
|
|
|
struct SN76496interface
|
|
{
|
|
int num; /* total number of 76496 in the machine */
|
|
int baseclock;
|
|
int volume[MAX_76496];
|
|
};
|
|
|
|
int SN76496_sh_start();
|
|
void SN76496_0_w(int offset,int data);
|
|
void SN76496_1_w(int offset,int data);
|
|
void SN76496_2_w(int offset,int data);
|
|
void SN76496_3_w(int offset,int data);
|
|
void SN76496_dump(int chip, uint8_t buf[16]);
|
|
void SN76496_restore(int chip, uint8_t buf[16]);
|
|
void SN76496_set_clock(int chip,int _clock);
|
|
int SN76496_init(int chip, int clock, int sample_rate, int sample_bits);
|
|
void SN76496Write(int chip, int data);
|
|
void SN76496Update_8_2(int chip,void *buffer, int length);
|
|
void SN76496Update_16_2(int chip,void *buffer, int length);
|
|
|
|
SN76496_H_END_
|
|
|
|
#endif
|