2006-02-25 20:50:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
2016-03-21 23:48:02 +00:00
|
|
|
#define SOUND_NONE 0
|
|
|
|
#define SOUND_DIRECT 1
|
|
|
|
#define SOUND_SMART 2
|
|
|
|
#define SOUND_WAVE 3
|
|
|
|
|
2006-02-25 20:50:29 +00:00
|
|
|
extern DWORD soundtype;
|
|
|
|
extern double g_fClksPerSpkrSample;
|
2016-03-21 23:48:02 +00:00
|
|
|
extern bool g_bQuieterSpeaker;
|
|
|
|
extern short g_nSpeakerData;
|
2006-02-25 20:50:29 +00:00
|
|
|
|
|
|
|
void SpkrDestroy ();
|
|
|
|
void SpkrInitialize ();
|
|
|
|
void SpkrReinitialize ();
|
|
|
|
void SpkrReset();
|
|
|
|
BOOL SpkrSetEmulationType (HWND,DWORD);
|
|
|
|
void SpkrUpdate (DWORD);
|
|
|
|
void SpkrUpdate_Timer();
|
2009-10-07 21:38:42 +00:00
|
|
|
void Spkr_SetErrorInc(const int nErrorInc);
|
|
|
|
void Spkr_SetErrorMax(const int nErrorMax);
|
2006-02-25 20:50:29 +00:00
|
|
|
DWORD SpkrGetVolume();
|
|
|
|
void SpkrSetVolume(DWORD dwVolume, DWORD dwVolumeMax);
|
|
|
|
void Spkr_Mute();
|
|
|
|
void Spkr_Demute();
|
|
|
|
bool Spkr_IsActive();
|
|
|
|
bool Spkr_DSInit();
|
|
|
|
void Spkr_DSUninit();
|
2016-03-21 23:48:02 +00:00
|
|
|
void SpkrSetSnapshot_v1(const unsigned __int64 SpkrLastCycle);
|
|
|
|
void SpkrSaveSnapshot(class YamlSaveHelper& yamlSaveHelper);
|
|
|
|
void SpkrLoadSnapshot(class YamlLoadHelper& yamlLoadHelper);
|
2006-02-25 20:50:29 +00:00
|
|
|
|
2007-05-28 11:16:42 +00:00
|
|
|
BYTE __stdcall SpkrToggle (WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft);
|