--- hatari/src/includes/sound.h 2019/04/01 07:10:37 1.1.1.4 +++ hatari/src/includes/sound.h 2019/04/01 07:10:56 1.1.1.5 @@ -17,13 +17,6 @@ typedef struct #define MIXBUFFER_SIZE 8192 /* Size of circular buffer to store sample to (44Khz) */ -#define SAMPLES_BUFFER_SIZE 1024 -/* Number of generated samples per frame (eg. 44Khz=882) : */ -#define SAMPLES_PER_FRAME ((SoundPlayBackFrequencies[OutputAudioFreqIndex]+25)/50) -/* Frequency of generated samples: */ -#define SAMPLES_FREQ (SoundPlayBackFrequencies[OutputAudioFreqIndex]) -#define YM_FREQ (2000000/SAMPLES_FREQ) /* YM Frequency 2Mhz */ - extern BOOL bWriteEnvelopeFreq,bWriteChannelAAmp,bWriteChannelBAmp,bWriteChannelCAmp; extern BOOL bEnvelopeFreqFlag; @@ -38,10 +31,9 @@ extern void Sound_MemorySnapShot_Capture extern void Sound_CreateLogTables(void); extern void Sound_CreateEnvelopeShapes(void); extern void Sound_CreateSoundMixClipTable(void); -extern void Sound_GenerateYMFrameSamples(void); -extern void Sound_UpdateHBL(void); extern void Sound_Update(void); extern void Sound_Update_VBL(void); +extern void Sound_UpdateFromAudioCallBack(void); extern BOOL Sound_BeginRecording(char *pszCaptureFileName); extern void Sound_EndRecording(); extern BOOL Sound_AreWeRecording(void);