SF2: Remove superfluous API call that sets period size for audio backend

We don't use any audio backend with fluidsynth, so there's no need to set a period size for it.
This commit is contained in:
Vesa
2014-07-05 16:29:59 +03:00
parent bc888f6e4c
commit 88c546275b

View File

@@ -109,7 +109,7 @@ sf2Instrument::sf2Instrument( InstrumentTrack * _instrument_track ) :
m_settings = new_fluid_settings();
fluid_settings_setint( m_settings, (char *) "audio.period-size", engine::mixer()->framesPerPeriod() );
//fluid_settings_setint( m_settings, (char *) "audio.period-size", engine::mixer()->framesPerPeriod() );
// This is just our starting instance of synth. It is recreated
// everytime we load a new soundfont.
@@ -626,8 +626,6 @@ void sf2Instrument::playNote( NotePlayHandle * _n, sampleFrame * )
// Could we get iph-based instruments support sample-exact models by using a
// frame-length of 1 while rendering?
void sf2Instrument::play( sampleFrame * _working_buffer )
{
const fpp_t frames = engine::mixer()->framesPerPeriod();