ENGINES: Remove unused MIDI pass-through code
This commit is contained in:
parent
e70fd59b35
commit
088bd7a70b
12 changed files with 22 additions and 76 deletions
|
@ -45,7 +45,6 @@ MidiPlayer::MidiPlayer() {
|
|||
// between songs.
|
||||
_driver = 0;
|
||||
_map_mt32_to_gm = false;
|
||||
_passThrough = false;
|
||||
|
||||
_enable_sfx = true;
|
||||
_current = 0;
|
||||
|
@ -108,11 +107,6 @@ void MidiPlayer::send(uint32 b) {
|
|||
if (!_current)
|
||||
return;
|
||||
|
||||
if (_passThrough) {
|
||||
_driver->send(b);
|
||||
return;
|
||||
}
|
||||
|
||||
byte channel = (byte)(b & 0x0F);
|
||||
if ((b & 0xFFF0) == 0x07B0) {
|
||||
// Adjust volume changes by master music and master sfx volume.
|
||||
|
@ -306,13 +300,6 @@ void MidiPlayer::setVolume(int musicVol, int sfxVol) {
|
|||
}
|
||||
}
|
||||
|
||||
void MidiPlayer::setDriver(MidiDriver *md) {
|
||||
// Don't try to set this more than once.
|
||||
if (_driver)
|
||||
return;
|
||||
_driver = md;
|
||||
}
|
||||
|
||||
void MidiPlayer::setLoop(bool loop) {
|
||||
Common::StackLock lock(_mutex);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue