/dports/games/libretro-scummvm/scummvm-7b1e929/engines/agos/drivers/simon1/ |
H A D | adlib.cpp | 58 _opl = OPL::Config::create(); in open() 59 if (!_opl) { in open() 63 if (!_opl->init()) { in open() 64 delete _opl; in open() 65 _opl = nullptr; in open() 72 _opl->writeReg(0x01, 0x20); in open() 73 _opl->writeReg(0x08, 0x40); in open() 74 _opl->writeReg(0xBD, 0xC0); in open() 89 _opl->stop(); in close() 90 delete _opl; in close() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/agos/drivers/simon1/ |
H A D | adlib.cpp | 58 _opl = OPL::Config::create(); in open() 59 if (!_opl) { in open() 63 if (!_opl->init()) { in open() 64 delete _opl; in open() 65 _opl = nullptr; in open() 72 _opl->writeReg(0x01, 0x20); in open() 73 _opl->writeReg(0x08, 0x40); in open() 74 _opl->writeReg(0xBD, 0xC0); in open() 89 _opl->stop(); in close() 90 delete _opl; in close() [all …]
|
/dports/games/libretro-scummvm/scummvm-7b1e929/audio/ |
H A D | alsa_opl.cpp | 58 snd_hwdep_t *_opl; member in OPL::ALSA::OPL 89 OPL::OPL(Config::OplType type) : _type(type), _opl(nullptr), _iface(0) { in OPL() 95 if (_opl) { in ~OPL() 96 snd_hwdep_ioctl(_opl, SNDRV_DM_FM_IOCTL_RESET, nullptr); in ~OPL() 97 snd_hwdep_close(_opl); in ~OPL() 155 if (snd_hwdep_open(&_opl, name.c_str(), SND_HWDEP_OPEN_WRITE) < 0) in init() 158 if (!snd_hwdep_info(_opl, info)) { in init() 170 snd_hwdep_close(_opl); in init() 171 _opl = nullptr; in init() 181 snd_hwdep_ioctl(_opl, SNDRV_DM_FM_IOCTL_RESET, nullptr); in reset() [all …]
|
H A D | miles_adlib.cpp | 217 OPL::OPL *_opl; member in Audio::MidiDriver_Miles_AdLib 273 : _masterVolume(15), _opl(0), in MidiDriver_Miles_AdLib() 302 _opl = OPL::Config::create(OPL::Config::kOpl3); in open() 304 if (!_opl) { in open() 314 if (!_opl) { in open() 319 _opl->init(); in open() 331 delete _opl; in close() 1051 _opl->write(0x220, reg); in setRegister() 1052 _opl->write(0x221, value); in setRegister() 1055 _opl->write(0x222, reg & 0xFF); in setRegister() [all …]
|
/dports/games/residualvm/residualvm-0.3.1/audio/ |
H A D | alsa_opl.cpp | 58 snd_hwdep_t *_opl; member in OPL::ALSA::OPL 89 OPL::OPL(Config::OplType type) : _type(type), _opl(nullptr), _iface(0) { in OPL() 95 if (_opl) { in ~OPL() 96 snd_hwdep_ioctl(_opl, SNDRV_DM_FM_IOCTL_RESET, nullptr); in ~OPL() 97 snd_hwdep_close(_opl); in ~OPL() 155 if (snd_hwdep_open(&_opl, name.c_str(), SND_HWDEP_OPEN_WRITE) < 0) in init() 158 if (!snd_hwdep_info(_opl, info)) { in init() 170 snd_hwdep_close(_opl); in init() 171 _opl = nullptr; in init() 181 snd_hwdep_ioctl(_opl, SNDRV_DM_FM_IOCTL_RESET, nullptr); in reset() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/audio/ |
H A D | alsa_opl.cpp | 58 snd_hwdep_t *_opl; member in OPL::ALSA::OPL 89 OPL::OPL(Config::OplType type) : _type(type), _opl(nullptr), _iface(0) { in OPL() 95 if (_opl) { in ~OPL() 96 snd_hwdep_ioctl(_opl, SNDRV_DM_FM_IOCTL_RESET, nullptr); in ~OPL() 97 snd_hwdep_close(_opl); in ~OPL() 155 if (snd_hwdep_open(&_opl, name.c_str(), SND_HWDEP_OPEN_WRITE) < 0) in init() 158 if (!snd_hwdep_info(_opl, info)) { in init() 170 snd_hwdep_close(_opl); in init() 171 _opl = nullptr; in init() 181 snd_hwdep_ioctl(_opl, SNDRV_DM_FM_IOCTL_RESET, nullptr); in reset() [all …]
|
H A D | miles_adlib.cpp | 239 OPL::OPL *_opl; member in Audio::MidiDriver_Miles_AdLib 322 if (!_opl) { in open() 327 if (!_opl) { in open() 333 if (!_opl) { in open() 344 _opl->init(); in open() 359 delete _opl; in close() 1213 _opl->write(0x220, reg); in setRegister() 1214 _opl->write(0x221, value); in setRegister() 1219 _opl->write(0x223, value); in setRegister() 1225 _opl->write(0x220, reg); in setRegisterStereo() [all …]
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/mads/ |
H A D | sound.cpp | 46 _opl = OPL::Config::create(); in SoundManager() 47 _opl->init(); in SoundManager() 65 delete _opl; in ~SoundManager() 78 _driver = new Nebular::ASound1(_mixer, _opl); in init() 81 _driver = new Nebular::ASound2(_mixer, _opl); in init() 84 _driver = new Nebular::ASound3(_mixer, _opl); in init() 87 _driver = new Nebular::ASound4(_mixer, _opl); in init() 90 _driver = new Nebular::ASound5(_mixer, _opl); in init() 93 _driver = new Nebular::ASound6(_mixer, _opl); in init() 96 _driver = new Nebular::ASound7(_mixer, _opl); in init() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/mads/ |
H A D | sound.cpp | 46 _opl = OPL::Config::create(); in SoundManager() 47 _opl->init(); in SoundManager() 65 delete _opl; in ~SoundManager() 78 _driver = new Nebular::ASound1(_mixer, _opl); in init() 81 _driver = new Nebular::ASound2(_mixer, _opl); in init() 84 _driver = new Nebular::ASound3(_mixer, _opl); in init() 87 _driver = new Nebular::ASound4(_mixer, _opl); in init() 90 _driver = new Nebular::ASound5(_mixer, _opl); in init() 93 _driver = new Nebular::ASound6(_mixer, _opl); in init() 96 _driver = new Nebular::ASound7(_mixer, _opl); in init() [all …]
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/parallaction/ |
H A D | adlib.cpp | 281 _opl = NULL; in AdLibDriver() 305 OPL::OPL *_opl; member in Parallaction::AdLibDriver 373 _opl = OPL::Config::create(); in open() 374 _opl->init(); in open() 380 _opl->writeReg(0xB0 + i, 0); // key on in open() 397 delete _opl; in close() 568 _opl->writeReg(0xBD, _percussionMask); in setModulationWheel() 677 _opl->writeReg(0xBD, _percussionMask); in setupPercussion() 711 _opl->writeReg(0xBD, _percussionMask); in playPercussion() 726 _opl->writeReg(0xBD, _percussionMask); in playPercussion() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/parallaction/ |
H A D | adlib.cpp | 281 _opl = NULL; in AdLibDriver() 305 OPL::OPL *_opl; member in Parallaction::AdLibDriver 373 _opl = OPL::Config::create(); in open() 374 _opl->init(); in open() 380 _opl->writeReg(0xB0 + i, 0); // key on in open() 397 delete _opl; in close() 572 _opl->writeReg(0xBD, _percussionMask); in setModulationWheel() 681 _opl->writeReg(0xBD, _percussionMask); in setupPercussion() 715 _opl->writeReg(0xBD, _percussionMask); in playPercussion() 730 _opl->writeReg(0xBD, _percussionMask); in playPercussion() [all …]
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/cruise/ |
H A D | sound.cpp | 137 OPL::OPL *_opl; member in Cruise::AdLibSoundDriver 302 _opl = OPL::Config::create(); in AdLibSoundDriver() 303 if (!_opl || !_opl->init()) in AdLibSoundDriver() 320 delete _opl; in ~AdLibSoundDriver() 378 _opl->writeReg(0xB0 | i, 0); in stopAll() 380 _opl->writeReg(0xBD, 0); in stopAll() 386 _opl->writeReg(0x08, 0x40); in initCard() 391 _opl->writeReg(0xB0 | i, 0); in initCard() 394 _opl->writeReg(0xC0 | i, 0); in initCard() 403 _opl->writeReg(1, 0x20); in initCard() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/cruise/ |
H A D | sound.cpp | 137 OPL::OPL *_opl; member in Cruise::AdLibSoundDriver 302 _opl = OPL::Config::create(); in AdLibSoundDriver() 303 if (!_opl || !_opl->init()) in AdLibSoundDriver() 320 delete _opl; in ~AdLibSoundDriver() 378 _opl->writeReg(0xB0 | i, 0); in stopAll() 380 _opl->writeReg(0xBD, 0); in stopAll() 386 _opl->writeReg(0x08, 0x40); in initCard() 391 _opl->writeReg(0xB0 | i, 0); in initCard() 394 _opl->writeReg(0xC0 | i, 0); in initCard() 403 _opl->writeReg(1, 0x20); in initCard() [all …]
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/cine/ |
H A D | sound.cpp | 127 OPL::OPL *_opl; member in Cine::AdLibSoundDriver 280 _opl = OPL::Config::create(); in AdLibSoundDriver() 281 if (!_opl || !_opl->init()) in AdLibSoundDriver() 291 delete _opl; in ~AdLibSoundDriver() 331 _opl->writeReg(0xB0 | i, 0); in stopAll() 333 _opl->writeReg(0xBD, 0); in stopAll() 339 _opl->writeReg(0x08, 0x40); in initCard() 344 _opl->writeReg(0xB0 | i, 0); in initCard() 347 _opl->writeReg(0xC0 | i, 0); in initCard() 356 _opl->writeReg(1, 0x20); in initCard() [all …]
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/sky/music/ |
H A D | adlibmusic.cpp | 41 _opl = OPL::Config::create(); in AdLibMusic() 42 if (!_opl || !_opl->init()) in AdLibMusic() 45 _opl->start(new Common::Functor0Mem<void, AdLibMusic>(this, &AdLibMusic::onTimer), 50); in AdLibMusic() 49 delete _opl; in ~AdLibMusic() 79 _channels[cnt] = new AdLibChannel(_opl, _musicData, chDataStart); in setupChannels() 86 _opl->writeReg(_initSequence[cnt], _initSequence[cnt + 1]); in startDriver()
|
/dports/games/scummvm/scummvm-2.5.1/engines/sky/music/ |
H A D | adlibmusic.cpp | 41 _opl = OPL::Config::create(); in AdLibMusic() 42 if (!_opl || !_opl->init()) in AdLibMusic() 45 _opl->start(new Common::Functor0Mem<void, AdLibMusic>(this, &AdLibMusic::onTimer), 50); in AdLibMusic() 49 delete _opl; in ~AdLibMusic() 79 _channels[cnt] = new AdLibChannel(_opl, _musicData, chDataStart); in setupChannels() 88 _opl->writeReg(_initSequence[cnt], _initSequence[cnt + 1]); in startDriver()
|
/dports/games/scummvm/scummvm-2.5.1/engines/cine/ |
H A D | sound.cpp | 131 OPL::OPL *_opl; member in Cine::AdLibSoundDriver 298 _opl = OPL::Config::create(); in AdLibSoundDriver() 299 if (!_opl || !_opl->init()) in AdLibSoundDriver() 310 delete _opl; in ~AdLibSoundDriver() 362 _opl->writeReg(0xB0 | i, 0); in stopAll() 368 _opl->writeReg(0xBD, 0); in stopAll() 375 _opl->writeReg(0x08, 0x40); in initCard() 380 _opl->writeReg(0xB0 | i, 0); in initCard() 383 _opl->writeReg(0xC0 | i, 0); in initCard() 392 _opl->writeReg(1, 0x20); in initCard() [all …]
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/sherlock/scalpel/drivers/ |
H A D | adlib.cpp | 220 : _masterVolume(15), _opl(0), in MidiDriver_SH_AdLib() 258 OPL::OPL *_opl; member in Sherlock::MidiDriver_SH_AdLib 290 _opl = OPL::Config::create(OPL::Config::kOpl2); in open() 292 if (!_opl) in open() 295 _opl->init(); in open() 299 …_opl->start(new Common::Functor0Mem<void, MidiDriver_SH_AdLib>(this, &MidiDriver_SH_AdLib::onTimer… in open() 306 _opl->stop(); in close() 308 delete _opl; in close() 623 _opl->write(0x220, reg); in setRegister() 624 _opl->write(0x221, value); in setRegister()
|
/dports/games/scummvm/scummvm-2.5.1/engines/sherlock/scalpel/drivers/ |
H A D | adlib.cpp | 220 : _masterVolume(15), _opl(0), in MidiDriver_SH_AdLib() 258 OPL::OPL *_opl; member in Sherlock::MidiDriver_SH_AdLib 290 _opl = OPL::Config::create(OPL::Config::kOpl2); in open() 292 if (!_opl) in open() 295 _opl->init(); in open() 299 …_opl->start(new Common::Functor0Mem<void, MidiDriver_SH_AdLib>(this, &MidiDriver_SH_AdLib::onTimer… in open() 306 _opl->stop(); in close() 308 delete _opl; in close() 623 _opl->write(0x220, reg); in setRegister() 624 _opl->write(0x221, value); in setRegister()
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/sci/sound/drivers/ |
H A D | adlib.cpp | 142 OPL::OPL *_opl; member in Sci::MidiDriver_AdLib 246 if (!_opl && _stereo) { in openAdLib() 251 if (!_opl) in openAdLib() 254 if (!_opl->init()) { in openAdLib() 255 delete _opl; in openAdLib() 256 _opl = nullptr; in openAdLib() 272 delete _opl; in close() 848 _opl->write(0x220, reg); in setRegister() 849 _opl->write(0x221, value); in setRegister() 854 _opl->write(0x222, reg); in setRegister() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/sci/sound/drivers/ |
H A D | adlib.cpp | 142 OPL::OPL *_opl; member in Sci::MidiDriver_AdLib 246 if (!_opl && _stereo) { in openAdLib() 251 if (!_opl) in openAdLib() 254 if (!_opl->init()) { in openAdLib() 255 delete _opl; in openAdLib() 256 _opl = nullptr; in openAdLib() 272 delete _opl; in close() 848 _opl->write(0x220, reg); in setRegister() 849 _opl->write(0x221, value); in setRegister() 854 _opl->write(0x222, reg); in setRegister() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/gob/sound/ |
H A D | adlib.cpp | 118 AdLib::AdLib(int callbackFreq) : _opl(0), in AdLib() 128 _opl->start(new Common::Functor0Mem<void, AdLib>(this, &AdLib::onTimer), callbackFreq); in AdLib() 132 delete _opl; in ~AdLib() 157 _opl = OPL::Config::create(OPL::Config::parse(oplDriver), OPL::Config::kOpl2); in createOPL() 158 if (!_opl || !_opl->init()) { in createOPL() 159 delete _opl; in createOPL() 249 _opl->writeReg(reg, val); in writeOPL() 644 _opl->setCallbackFrequency(timerFrequency); in setTimerFrequency()
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/gob/sound/ |
H A D | adlib.cpp | 118 AdLib::AdLib(int callbackFreq) : _opl(0), in AdLib() 128 _opl->start(new Common::Functor0Mem<void, AdLib>(this, &AdLib::onTimer), callbackFreq); in AdLib() 132 delete _opl; in ~AdLib() 157 _opl = OPL::Config::create(OPL::Config::parse(oplDriver), OPL::Config::kOpl2); in createOPL() 158 if (!_opl || !_opl->init()) { in createOPL() 159 delete _opl; in createOPL() 249 _opl->writeReg(reg, val); in writeOPL() 644 _opl->setCallbackFrequency(timerFrequency); in setTimerFrequency()
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/agos/drivers/accolade/ |
H A D | adlib.cpp | 98 : _masterVolume(15), _opl(0), in MidiDriver_Accolade_AdLib() 121 _opl = OPL::Config::create(OPL::Config::kOpl2); in open() 123 if (!_opl) in open() 126 _opl->init(); in open() 130 …_opl->start(new Common::Functor0Mem<void, MidiDriver_Accolade_AdLib>(this, &MidiDriver_Accolade_Ad… in open() 164 delete _opl; in close() 613 _opl->writeReg(reg, value); in setRegister()
|
/dports/games/scummvm/scummvm-2.5.1/engines/agos/drivers/accolade/ |
H A D | adlib.cpp | 98 : _masterVolume(143), _opl(0), in MidiDriver_Accolade_AdLib() 121 _opl = OPL::Config::create(OPL::Config::kOpl2); in open() 123 if (!_opl) in open() 126 _opl->init(); in open() 130 …_opl->start(new Common::Functor0Mem<void, MidiDriver_Accolade_AdLib>(this, &MidiDriver_Accolade_Ad… in open() 164 delete _opl; in close() 606 _opl->writeReg(reg, value); in setRegister()
|