mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- removed Timidity_mastervolume CVAR. The reason why this was added got addressed at a lower level with the new code (i.e. the EXE's output was far too loud) and if there need to be adjustments to evening out the volume of the different MIDI synths it should be done in the data generation step, not as an added factor to the system volume of the track.
This commit is contained in:
parent
d25cc1baa0
commit
4a179954b1
3 changed files with 1 additions and 23 deletions
|
@ -66,7 +66,6 @@ public:
|
|||
MusInfo ();
|
||||
virtual ~MusInfo ();
|
||||
virtual void MusicVolumeChanged(); // snd_musicvolume changed
|
||||
virtual void TimidityVolumeChanged(); // timidity_mastervolume changed
|
||||
virtual void Play (bool looping, int subsong) = 0;
|
||||
virtual void Pause () = 0;
|
||||
virtual void Resume () = 0;
|
||||
|
|
|
@ -14,8 +14,6 @@ void I_InitMusicWin32 ();
|
|||
extern float relative_volume;
|
||||
class MIDISource;
|
||||
|
||||
EXTERN_CVAR (Float, timidity_mastervolume)
|
||||
|
||||
|
||||
// A device that provides a WinMM-like MIDI streaming interface -------------
|
||||
|
||||
|
|
|
@ -85,16 +85,6 @@ TimidityPlus::Instruments *TimidityPPMIDIDevice::instruments;
|
|||
CVAR(String, timidity_config, "timidity.cfg", CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||
|
||||
// added because Timidity's output is rather loud.
|
||||
CUSTOM_CVAR (Float, timidity_mastervolume, 1.0f, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||
{
|
||||
if (self < 0.f)
|
||||
self = 0.f;
|
||||
else if (self > 4.f)
|
||||
self = 4.f;
|
||||
if (currSong != NULL)
|
||||
currSong->TimidityVolumeChanged();
|
||||
}
|
||||
|
||||
|
||||
CUSTOM_CVAR (Int, timidity_frequency, 44100, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||
{ // Clamp frequency to Timidity's limits
|
||||
|
@ -226,19 +216,10 @@ void TimidityPPMIDIDevice::ComputeOutput(float *buffer, int len)
|
|||
|
||||
//==========================================================================
|
||||
//
|
||||
// TimidityPPMIDIDevice :: TimidityVolumeChanged
|
||||
//
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
void TimidityPPMIDIDevice::TimidityVolumeChanged()
|
||||
{
|
||||
if (Stream != NULL)
|
||||
{
|
||||
Stream->SetVolume(timidity_mastervolume);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
MIDIDevice *CreateTimidityPPMIDIDevice(const char *args)
|
||||
{
|
||||
return new TimidityPPMIDIDevice(args);
|
||||
|
|
Loading…
Reference in a new issue