QString MPDemux::name() const { switch ( ModPlug_GetModuleType( mpfile ) ) { case 0x01: return "ProTracker MOD"; case 0x02: return "ScreamTracker S3M"; case 0x04: return "FastTracker XM"; case 0x08: return "OctaMED"; case 0x10: return "Multitracker MTM"; case 0x20: return "ImpulseTracker IT"; case 0x40: return "UNIS Composer 669"; case 0x80: return "UltraTracker ULT"; case 0x100: return "ScreamTracker STM"; case 0x200: return "Farandole Composer FAR"; case 0x800: case 0x200000: return "Advanced Module File AMF"; case 0x1000: return "Extreme Tracker Module AMS"; case 0x2000: return "Digital Sound Module DSM"; case 0x4000: return "DigiTrakker Module MDL"; case 0x8000: return "Oktalyzer Module OKT"; case 0x20000: return "Delusion Digital Music File DMF"; case 0x40000: return "PolyTracker Module PTM"; case 0x80000: return "DigiBooster Pro DBM"; case 0x100000: return "MadTracker MT2"; case 0x400000: return "Protracker Studio Module PSM"; case 0x800000: return "Jazz Jackrabbit 2 Music J2B"; case 0x1000000: return "Amiga SoundFX"; } return ""; }
void get_info( file_info & p_info, abort_callback & p_abort ) { ModPlugFile* m_info = ModPlug_Load(file_buffer.get_ptr(), file_buffer.get_size()); p_info.info_set( "encoding", "synthesized" ); int type_module = ModPlug_GetModuleType(m_info); p_info.info_set( "codec", "Module file" ); p_info.info_set_int( "channels", 2 ); p_info.meta_set( "title", pfc::stringcvt::string_utf8_from_ansi( ModPlug_GetName(m_info) )); int len = ModPlug_GetLength(m_info); len /= 1000; p_info.set_length( len ); if(m_info)ModPlug_Unload(m_info); }
int sfMod::Mod::GetModuleType() const { return ModPlug_GetModuleType(file_); }