- Fixed: After starting new music the music volume has to be reset so that

the song's relative volume takes effect.
- Removed the arbitrary 1024 bytes limit when the file being played is a MIDI
  file. I had a D_DM2TTL that's only 990 bytes.
- Restructured I_RegisterSong so that $mididevice works again and also supports
  selecting FMOD.


SVN r857 (trunk)
This commit is contained in:
Christoph Oelckers 2008-03-27 00:05:32 +00:00
commit 6420d82a58
5 changed files with 169 additions and 110 deletions

View file

@ -1307,10 +1307,10 @@ bool S_ChangeMusic (const char *musicname, int order, bool looping, bool force)
{
int lumpnum = -1;
int offset, length;
int device = -1;
int device = MDEV_DEFAULT;
int * devp = MidiDevices.CheckKey(FName(musicname));
int *devp = MidiDevices.CheckKey(FName(musicname));
if (devp != NULL) device = *devp;
if (!FileExists (musicname))