1 /* 2 * Audacious: Cross platform multimedia player 3 * Copyright (c) 2009 Audacious Team 4 * 5 * Driver for Game_Music_Emu library. See details at: 6 * http://www.slack.net/~ant/libs/ 7 */ 8 9 #include "configure.h" 10 #include "plugin.h" 11 12 EXPORT ConsolePlugin aud_plugin_instance; 13 14 const char ConsolePlugin::about[] = 15 N_("Console music decoder engine based on Game_Music_Emu 0.5.2\n" 16 "Supported formats: AY, GBS, GYM, HES, KSS, NSF, NSFE, SAP, SPC, VGM, VGZ\n\n" 17 "Audacious plugin by:\n" 18 "William Pitcock <nenolod@dereferenced.org>\n" 19 "Shay Green <gblargg@gmail.com>"); 20 21 const char * const ConsolePlugin::exts[] = { 22 "ay", "gbs", "gym", 23 "hes", "kss", "nsf", 24 "nsfe", "sap", "spc", 25 "vgm", "vgz", nullptr 26 }; 27 28 const PreferencesWidget ConsolePlugin::widgets[] = { 29 WidgetLabel (N_("<b>Playback</b>")), 30 WidgetSpin (N_("Bass:"), 31 WidgetInt (audcfg.bass), 32 {-100, 100, 1}), 33 WidgetSpin (N_("Treble:"), 34 WidgetInt (audcfg.treble), 35 {-100, 100, 1}), 36 WidgetSpin (N_("Echo:"), 37 WidgetInt (audcfg.echo), 38 {0, 100, 1}), 39 WidgetSpin (N_("Default song length:"), 40 WidgetInt (audcfg.loop_length), 41 {1, 7200, 1, N_("seconds")}), 42 WidgetLabel (N_("<b>Resampling</b>")), 43 WidgetCheck (N_("Enable audio resampling"), 44 WidgetBool (audcfg.resample)), 45 WidgetSpin (N_("Sample rate:"), 46 WidgetInt (audcfg.resample_rate), 47 {11025, 96000, 100, N_("Hz")}, 48 WIDGET_CHILD), 49 WidgetLabel (N_("<b>SPC</b>")), 50 WidgetCheck (N_("Ignore length from SPC tags"), 51 WidgetBool (audcfg.ignore_spc_length)), 52 WidgetCheck (N_("Increase reverb"), 53 WidgetBool (audcfg.inc_spc_reverb)) 54 }; 55 56 const PluginPreferences ConsolePlugin::prefs = {{widgets}}; 57