mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-17 13:38:22 -04:00
Samplebuffer/AFP: coding style, remove redundant inlines
This commit is contained in:
@@ -663,7 +663,7 @@ bool SampleBuffer::play( sampleFrame * _ab, handleState * _state,
|
||||
{
|
||||
SRC_DATA src_data;
|
||||
// Generate output
|
||||
f_cnt_t fragment_size = (f_cnt_t)( _frames * freq_factor ) + MARGIN[ _state->interpMode() ];
|
||||
f_cnt_t fragment_size = (f_cnt_t)( _frames * freq_factor ) + MARGIN[ _state->interpolationMode() ];
|
||||
src_data.data_in =
|
||||
getSampleFragment( play_frame, fragment_size, _loopmode, &tmp, &is_backwards,
|
||||
loopStartFrame, loopEndFrame, endFrame )[0];
|
||||
@@ -1438,15 +1438,15 @@ QString SampleBuffer::tryToMakeAbsolute( const QString & _file )
|
||||
|
||||
|
||||
|
||||
SampleBuffer::handleState::handleState( bool _varying_pitch, int interp_mode ) :
|
||||
SampleBuffer::handleState::handleState( bool _varying_pitch, int interpolation_mode ) :
|
||||
m_frameIndex( 0 ),
|
||||
m_varyingPitch( _varying_pitch ),
|
||||
m_isBackwards( false )
|
||||
{
|
||||
int error;
|
||||
m_interpMode = interp_mode;
|
||||
m_interpolationMode = interpolation_mode;
|
||||
|
||||
if( ( m_resamplingData = src_new( interp_mode, DEFAULT_CHANNELS, &error ) ) == NULL )
|
||||
if( ( m_resamplingData = src_new( interpolation_mode, DEFAULT_CHANNELS, &error ) ) == NULL )
|
||||
{
|
||||
qDebug( "Error: src_new() failed in sample_buffer.cpp!\n" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user