Add mus_adlibstereo cvar to enable and disable AdLib stereo mode

git-svn-id: https://svn.eduke32.com/eduke32@8223 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-10-19 23:48:40 +00:00 committed by Christoph Oelckers
parent 8a61ceeb36
commit ff10fdf929
3 changed files with 5 additions and 2 deletions

View file

@ -197,7 +197,7 @@ static AdLibChannel Channel[NUMADLIBCHANNELS];
static int AL_LeftPort = ADLIB_PORT;
static int AL_RightPort = ADLIB_PORT;
static int AL_Stereo;
int AL_Stereo;
static int AL_SendStereo;
static int AL_MaxMidiChannel = 16;
@ -863,7 +863,7 @@ static int AL_Init(int rate)
{
OPL3_Reset(&chip, rate);
AL_Stereo = FALSE;
AL_Stereo = TRUE;
AL_LeftPort = ADLIB_PORT;
AL_RightPort = ADLIB_PORT + 2;

View file

@ -22,6 +22,8 @@
#include "midifuncs.h"
#include "opl3.h"
extern int AL_Stereo;
int AdLibDrv_GetError(void);
const char *AdLibDrv_ErrorString(int ErrorNumber);

View file

@ -73,6 +73,7 @@ int FX_Init(int numvoices, int numchannels, unsigned mixrate, void *initdata)
static osdcvardata_t cvars_audiolib[] = {
{ "mus_emidicard", "force a specific EMIDI instrument set", (void *)&ASS_EMIDICard, CVAR_INT | CVAR_FUNCPTR, 0, 10 },
{ "mus_adlibstereo", "enable/disable OPL3 stereo mode", (void *)&AL_Stereo, CVAR_BOOL | CVAR_FUNCPTR, 0, 10 },
};
if (!init++)