mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-29 04:31:49 +01:00
ed11eb0133
* improved sprites processing accuracy. * fixed VBLANK transition line checks. * code cleanup and (minor) optimizations. [Core/Sound] * increased FM internal sample size to 32-bit to avoid overflow when adding channels. * added preliminary emulation of YM2612 DAC precision (can be configured to match real console output). * added configurable roll-off for FIR filtering in High-Quality FM mode. [Wii] *added support to enable/disable Video Encoder Trap Filter: can help reproducing "color blending" as on a real Genesis (composite video only). *added support to configure Video Encoder gamma correction.
32 lines
851 B
C
32 lines
851 B
C
/*
|
|
**
|
|
** File: ym2612.h -- header for ym2612.c
|
|
** software implementation of Yamaha FM sound generator
|
|
**
|
|
** Copyright (C) 2001, 2002, 2003 Jarek Burczynski (bujar at mame dot net)
|
|
** Copyright (C) 1998 Tatsuyuki Satoh , MultiArcadeMachineEmulator development
|
|
**
|
|
** Version 1.4 (final beta)
|
|
**
|
|
*/
|
|
|
|
#ifndef _H_FM_FM_
|
|
#define _H_FM_FM_
|
|
|
|
/* compiler dependence */
|
|
#ifndef INLINE
|
|
#define INLINE static __inline__
|
|
#endif
|
|
|
|
|
|
extern int YM2612Init(float clock, int rate);
|
|
extern int YM2612ResetChip(void);
|
|
extern void YM2612Update(long int *buffer, int length);
|
|
extern void YM2612Write(unsigned int a, unsigned int v);
|
|
extern unsigned int YM2612Read(void);
|
|
extern unsigned char *YM2612GetContextPtr(void);
|
|
extern unsigned int YM2612GetContextSize(void);
|
|
extern void YM2612Restore(unsigned char *buffer);
|
|
|
|
#endif /* _H_FM_FM_ */
|