void RegisterASCSupport(PlayerPluginsRegistrator& registrator) { { const Char ID[] = {'A', 'S', '0', 0}; const Formats::Chiptune::ASCSoundMaster::Decoder::Ptr decoder = Formats::Chiptune::ASCSoundMaster::Ver0::CreateDecoder(); const Module::AYM::Factory::Ptr factory = boost::make_shared<Module::ASCSoundMaster::Factory>(decoder); const PlayerPlugin::Ptr plugin = CreatePlayerPlugin(ID, decoder, factory); registrator.RegisterPlugin(plugin); } { const Char ID[] = {'A', 'S', 'C', 0}; const Formats::Chiptune::ASCSoundMaster::Decoder::Ptr decoder = Formats::Chiptune::ASCSoundMaster::Ver1::CreateDecoder(); const Module::AYM::Factory::Ptr factory = boost::make_shared<Module::ASCSoundMaster::Factory>(decoder); const PlayerPlugin::Ptr plugin = CreatePlayerPlugin(ID, decoder, factory); registrator.RegisterPlugin(plugin); } }
void RegisterYMSupport(PlayerPluginsRegistrator& registrator) { //plugin attributes const Char ID[] = {'Y', 'M', 0}; { const Formats::Chiptune::YM::Decoder::Ptr decoder = Formats::Chiptune::YM::CreatePackedYMDecoder(); const Module::AYM::Factory::Ptr factory = Module::YMVTX::CreateFactory(decoder); const PlayerPlugin::Ptr plugin = CreateStreamPlayerPlugin(ID, decoder, factory); registrator.RegisterPlugin(plugin); } { const Formats::Chiptune::YM::Decoder::Ptr decoder = Formats::Chiptune::YM::CreateYMDecoder(); const Module::AYM::Factory::Ptr factory = Module::YMVTX::CreateFactory(decoder); const PlayerPlugin::Ptr plugin = CreateStreamPlayerPlugin(ID, decoder, factory);; registrator.RegisterPlugin(plugin); } }
void RegisterSIDPlugins(PlayerPluginsRegistrator& registrator) { const Char ID[] = {'S', 'I', 'D', 0}; const uint_t CAPS = Capabilities::Module::Type::MEMORYDUMP | Capabilities::Module::Device::MOS6581; const Formats::Chiptune::Decoder::Ptr decoder = Formats::Chiptune::CreateSIDDecoder(); const Module::Factory::Ptr factory = MakePtr<Module::Sid::Factory>(); const PlayerPlugin::Ptr plugin = CreatePlayerPlugin(ID, CAPS, decoder, factory); registrator.RegisterPlugin(plugin); }
void RegisterPSCSupport(PlayerPluginsRegistrator& registrator) { //plugin attributes const Char ID[] = {'P', 'S', 'C', 0}; const Formats::Chiptune::Decoder::Ptr decoder = Formats::Chiptune::CreateProSoundCreatorDecoder(); const Module::AYM::Factory::Ptr factory = Module::ProSoundCreator::CreateFactory(); const PlayerPlugin::Ptr plugin = CreateTrackPlayerPlugin(ID, decoder, factory);; registrator.RegisterPlugin(plugin); }
void RegisterPT2Support(PlayerPluginsRegistrator& registrator) { //plugin attributes const Char ID[] = {'P', 'T', '2', 0}; const Formats::Chiptune::Decoder::Ptr decoder = Formats::Chiptune::CreateProTracker2Decoder(); const Module::AYM::Factory::Ptr factory = boost::make_shared<Module::ProTracker2::Factory>(); const PlayerPlugin::Ptr plugin = CreatePlayerPlugin(ID, decoder, factory); registrator.RegisterPlugin(plugin); }
void RegisterOGGPlugin(PlayerPluginsRegistrator& registrator) { const Char ID[] = {'O', 'G', 'G', 0}; const uint_t CAPS = Capabilities::Module::Type::STREAM | Capabilities::Module::Device::DAC; const auto decoder = Formats::Chiptune::CreateOGGDecoder(); const auto factory = MakePtr<Module::Ogg::Factory>(); const PlayerPlugin::Ptr plugin = CreatePlayerPlugin(ID, CAPS, decoder, factory); registrator.RegisterPlugin(plugin); }
void RegisterST1Support(PlayerPluginsRegistrator& registrator) { //plugin attributes const Char ID[] = {'S', 'T', '1', 0}; const Formats::Chiptune::SoundTracker::Decoder::Ptr decoder = Formats::Chiptune::SoundTracker::Ver1::CreateUncompiledDecoder(); const Module::AYM::Factory::Ptr factory = Module::SoundTracker::CreateFactory(decoder); const PlayerPlugin::Ptr plugin = CreateTrackPlayerPlugin(ID, decoder, factory); registrator.RegisterPlugin(plugin); }
void RegisterGSFSupport(PlayerPluginsRegistrator& registrator) { //plugin attributes const Char ID[] = {'G', 'S', 'F', 0}; const uint_t CAPS = Capabilities::Module::Type::MEMORYDUMP | Capabilities::Module::Device::DAC | Capabilities::Module::Traits::MULTIFILE; const auto factory = Module::GSF::CreateFactory(); const auto decoder = Formats::Chiptune::CreateGSFDecoder(); const auto plugin = CreatePlayerPlugin(ID, CAPS, decoder, factory); registrator.RegisterPlugin(plugin); }
void RegisterAYSupport(PlayerPluginsRegistrator& registrator) { //plugin attributes const Char ID[] = {'A', 'Y', 0}; const uint_t CAPS = Capabilities::Module::Type::MEMORYDUMP | Capabilities::Module::Device::AY38910 | Capabilities::Module::Device::BEEPER | Module::AYM::GetSupportedFormatConvertors(); const Formats::Chiptune::Decoder::Ptr decoder = Formats::Chiptune::CreateAYEMULDecoder(); const Module::Factory::Ptr factory = Module::AYEMUL::CreateFactory(); const PlayerPlugin::Ptr plugin = CreatePlayerPlugin(ID, CAPS, decoder, factory); registrator.RegisterPlugin(plugin); }