Exemple #1
0
 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);
   }
 }
Exemple #2
0
 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);
   }
 }
Exemple #3
0
 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);
 }
Exemple #4
0
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);
}
Exemple #5
0
  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);
  }
Exemple #6
0
  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);
  }
Exemple #7
0
  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);
  }
Exemple #8
0
  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);
  }
Exemple #9
0
  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);
  }