mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-13 22:35:10 +01:00
2b78421402
------ * improved 68k accuracy (initial reset timing + auto-vectored interrupts handling). * modified Z80 & 68k cores to directly use external cycle count instead of intermediate counters. * improved Z80 & 68k cpu execution/synchronization accuracy, now use Master Clock as common clock reference. * improved PSG & FM chips synchronization with CPU execution (fixed point precision). * completely rewrote sound output processing & mixing: sound chips are now clocked with exact output frame rate to ensure 100% smooth video & audio playback, with no lag or skipping, while still rendering an accurate number of samples per frame. This will also make fast-forward implementation (video AND sound) more trivial. * improved color accuracy in VDP highlight mode to match results observed on real hardware. * improved sprites processing timing accuracy: fixes (un)masked sprites in Mickey Mania (3D level), Sonic 2 (VS mode). * improved horizontal blanking & HINT/VINT occurrence timing accuracy, as measured on real hardware. * improved H-Counter accuracy in 40-cell mode, as measured on real hardware. * optimized Z80 bus status signals * usual code cleanup [GCN/WII] --------- fixed ASNDLIB exit when returning to game fixed audio/video startup sync modified audio back-end engine according to new audio processing core (see above)
31 lines
991 B
C
31 lines
991 B
C
/* Finite impulse response (FIR) resampler with adjustable FIR size */
|
|
|
|
/* Game_Music_Emu 0.5.2 */
|
|
#ifndef FIR_RESAMPLER_H
|
|
#define FIR_RESAMPLER_H
|
|
|
|
#define STEREO 2
|
|
#define MAX_RES 32
|
|
#define WIDTH 16
|
|
#define WRITE_OFFSET (WIDTH * STEREO) - STEREO
|
|
#define ROLLOFF 0.990
|
|
#define GAIN 1.0
|
|
|
|
typedef short sample_t;
|
|
|
|
extern int Fir_Resampler_initialize( int new_size );
|
|
extern void Fir_Resampler_shutdown( void );
|
|
extern void Fir_Resampler_clear( void );
|
|
extern double Fir_Resampler_time_ratio( double new_factor );
|
|
extern double Fir_Resampler_ratio( void );
|
|
extern int Fir_Resampler_max_write( void );
|
|
extern sample_t* Fir_Resampler_buffer( void );
|
|
extern int Fir_Resampler_written( void );
|
|
extern int Fir_Resampler_avail( void );
|
|
extern void Fir_Resampler_write( long count );
|
|
extern int Fir_Resampler_read( sample_t* out, long count );
|
|
extern int Fir_Resampler_input_needed( long output_count );
|
|
extern int Fir_Resampler_skip_input( long count );
|
|
|
|
#endif
|