cog/Frameworks/GME/vgmplay/chips/ymf271.h

31 lines
1001 B
C

#pragma once
//#include "devcb.h"
//typedef struct _ymf271_interface ymf271_interface;
//struct _ymf271_interface
//{
// //devcb_read8 ext_read; /* external memory read */
// //devcb_write8 ext_write; /* external memory write */
// //void (*irq_callback)(const device_config *device, int state); /* irq callback */
// void (*irq_callback)(int state); /* irq callback */
//};
/*READ8_DEVICE_HANDLER( ymf271_r );
WRITE8_DEVICE_HANDLER( ymf271_w );
DEVICE_GET_INFO( ymf271 );
#define SOUND_YMF271 DEVICE_GET_INFO_NAME( ymf271 )*/
void ymf271_update(void *chip, stream_sample_t **outputs, int samples);
int device_start_ymf271(void **chip, int clock);
void device_stop_ymf271(void *chip);
void device_reset_ymf271(void *chip);
UINT8 ymf271_r(void *chip, offs_t offset);
void ymf271_w(void *chip, offs_t offset, UINT8 data);
void ymf271_write_rom(void *chip, offs_t ROMSize, offs_t DataStart, offs_t DataLength,
const UINT8* ROMData);
void ymf271_set_mute_mask(void *chip, UINT32 MuteMask);