- Did some restructuring of the OPL code in preparation for turning it
into a general MIDI player. - Fixed: Passing false for a stream callback did not stop the stream. - Removed opl_frequency, since the only time the emulation sounds good is when it plays at the exact frequency of a real chip. - Music no longer plays at all when snd_musicvolume is 0. - Bumped up snd_sfxvolume and snd_musicvolume default values. SVN r862 (trunk)
This commit is contained in:
parent
776d89428d
commit
938ae1767b
11 changed files with 191 additions and 111 deletions
|
|
@ -1270,26 +1270,13 @@ static menu_t SoundMenu =
|
|||
*=======================================*/
|
||||
|
||||
EXTERN_CVAR (Bool, opl_enable)
|
||||
EXTERN_CVAR (Int, opl_frequency)
|
||||
EXTERN_CVAR (Bool, opl_onechip)
|
||||
|
||||
static value_t OPLSampleRates[] =
|
||||
{
|
||||
{ 4000.f, "4000 Hz" },
|
||||
{ 6215.f, "6215 Hz" },
|
||||
{ 12429.f, "12429 Hz" },
|
||||
{ 24858.f, "24858 Hz" },
|
||||
{ 49716.f, "49716 Hz" },
|
||||
};
|
||||
|
||||
static menuitem_t AdvSoundItems[] =
|
||||
{
|
||||
{ whitetext,"OPL Synthesis", {NULL}, {0.0}, {0.0}, {0.0}, {NULL} },
|
||||
{ discrete, "Use FM Synth for MUS music",{&opl_enable}, {2.0}, {0.0}, {0.0}, {OnOff} },
|
||||
{ discrete, "Only emulate one OPL chip", {&opl_onechip}, {2.0}, {0.0}, {0.0}, {OnOff} },
|
||||
{ discrete, "OPL synth sample rate", {&opl_frequency}, {5.0}, {0.0}, {0.0}, {OPLSampleRates} },
|
||||
|
||||
|
||||
};
|
||||
|
||||
static menu_t AdvSoundMenu =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue