in draft-mode use zero-order-hold interpolation instead of linear interpolation - fixes some issues with resampling, cleanups

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@961 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-05-12 18:37:05 +00:00
parent 8cf16971b8
commit 298df38d09
5 changed files with 14 additions and 5 deletions

View File

@@ -168,18 +168,17 @@ void audioDevice::resample( const surroundSampleFrame * _src,
m_srcData.data_in = (float *) _src[0];
m_srcData.data_out = _dst[0];
m_srcData.src_ratio = (double) _dst_sr / _src_sr;
int error;
if( ( error = src_process( m_srcState, &m_srcData ) ) )
{
printf( "audioDevice::resample(): error while resampling: %s\n",
src_strerror( error ) );
}
m_srcData.end_of_input = 0;
}
Uint32 audioDevice::convertToS16( const surroundSampleFrame * _ab,
const fpp_t _frames,
const float _master_gain,