void output_v3::get_injected_dsps( dsp_chain_config & dsps ) { #ifdef FOOBAR2000_HAVE_DSP dsps.remove_all(); unsigned rate = this->get_forced_sample_rate(); if (rate != 0) { dsp_preset_impl temp; if (resampler_entry::g_create_preset( temp, 0, rate, 0 )) { dsps.insert_item( temp, dsps.get_count() ); } } #endif // FOOBAR2000_HAVE_DSP }
void dsp_chain_config::copy(const dsp_chain_config & p_source) { remove_all(); t_size n, m = p_source.get_count(); for(n=0;n<m;n++) add_item(p_source.get_item(n)); }
bool cfg_dsp_chain_config::get_data(dsp_chain_config & p_data) const { p_data.copy(m_data); return true; }