Music_Emu::gme_t() { effects_buffer_ = NULL; sample_rate_ = 0; mute_mask_ = 0; tempo_ = 1.0; gain_ = 1.0; fade_set = false; // defaults tfilter = track_filter.setup(); set_max_initial_silence( 15 ); set_silence_lookahead( 3 ); ignore_silence( false ); equalizer_.treble = -1.0; equalizer_.bass = 60; static const char* const names [] = { "Voice 1", "Voice 2", "Voice 3", "Voice 4", "Voice 5", "Voice 6", "Voice 7", "Voice 8" }; set_voice_names( names ); Music_Emu::unload(); // clears fields }
Vgm_Emu::Vgm_Emu() { resampler.set_callback( play_frame_, this ); disable_oversampling_ = false; set_type( gme_vgm_type ); set_max_initial_silence( 1 ); set_silence_lookahead( 1 ); // tracks should already be trimmed static equalizer_t const eq = { -14.0, 80 }; set_equalizer( eq ); }
Gbs_Emu::Gbs_Emu() { sound_hardware = sound_gbs; enable_clicking( false ); set_type( gme_gbs_type ); set_silence_lookahead( 6 ); set_max_initial_silence( 21 ); set_gain( 1.2 ); // kind of midway between headphones and speaker static equalizer_t const eq = { -1.0, 120 }; set_equalizer( eq ); }