From 0401ee9f58ea842cb4aef687e8e107380d46445c Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Wed, 25 Oct 2017 03:01:50 +0300 Subject: Clean-up - Move all private variables into MIDIplay class away from public ADL_MIDIPlayer structure - Comment out most of legacy code - Implement new-style ReadVarLenEx for error-checked var-len value reading process TODO: Stabilize this and implement missing fields and API calls (meta-data retreiving) --- include/adlmidi.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'include') diff --git a/include/adlmidi.h b/include/adlmidi.h index e2aaf59..817fe59 100644 --- a/include/adlmidi.h +++ b/include/adlmidi.h @@ -40,33 +40,7 @@ enum ADLMIDI_VolumeModels struct ADL_MIDIPlayer { - unsigned int AdlBank; - unsigned int NumFourOps; - unsigned int NumCards; - unsigned int HighTremoloMode; - unsigned int HighVibratoMode; - unsigned int AdlPercussionMode; - unsigned int LogarithmicVolumes; - int VolumeModel; - unsigned int SkipForward; - unsigned int loopingIsEnabled; - unsigned int ScaleModulators; - double delay; - double carry; - - /* The lag between visual content and audio content equals */ - /* the sum of these two buffers. */ - double mindelay; - double maxdelay; - - /* For internal usage */ - ssize_t stored_samples; /* num of collected samples */ - short backup_samples[1024]; /* Backup sample storage. */ - ssize_t backup_samples_size; /* Backup sample storage. */ - /* For internal usage */ - void *adl_midiPlayer; - unsigned long PCM_RATE; }; /* Sets number of emulated sound cards (from 1 to 100). Emulation of multiple sound cards exchanges polyphony limits*/ -- cgit v1.2.3