Logo Search packages:      
Sourcecode: scummvm version File versions

void MidiDriver_MPU401::close (  ) [virtual, inherited]

Close the midi driver.

Implements MidiDriver.

Definition at line 107 of file mpu401.cpp.

References OSystem::getTimerManager(), MidiDriver::isOpen(), Common::TimerManager::removeTimerProc(), and MidiDriver_BASE::send().

                              {
      if (_timer_proc) {
            g_system->getTimerManager()->removeTimerProc(_timer_proc);
            _timer_proc = 0;
      }
      if (isOpen()) {
            for (int i = 0; i < 16; ++i)
                  send(0x7B << 8 | 0xB0 | i);
      }
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index