- moved the sound system's sound stream for the music out of the song objects.

It is now being handled by the controlling code.
While of no benefit for GZDoom itself, this finally allows to separate the entire music code into a separate, engine independent project that merely provides streamed music data when not playing on a hardware device (WinMM Midi or CD Audio.)
The tight coupling of the music code with the sound backend made this nearly impossible before
This commit is contained in:
Christoph Oelckers 2019-09-30 00:02:31 +02:00
commit 7c27cd0c57
6 changed files with 71 additions and 88 deletions

View file

@ -99,7 +99,7 @@ SoundStreamInfo SoftSynthMIDIDevice::GetStreamInfo() const
{
chunksize *= 2;
}
return { chunksize, SampleRate, isMono };
return { chunksize, SampleRate, isMono? 1:2 };
}
//==========================================================================