mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
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:
parent
8a61ceeb36
commit
ff10fdf929
3 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#include "midifuncs.h"
|
||||
#include "opl3.h"
|
||||
|
||||
extern int AL_Stereo;
|
||||
|
||||
int AdLibDrv_GetError(void);
|
||||
const char *AdLibDrv_ErrorString(int ErrorNumber);
|
||||
|
||||
|
|
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue