Drumsynth: make rendering use the mixer samplerate instead of hard coded 44100.

This commit is contained in:
Raine M. Ekman
2014-03-04 22:00:02 +02:00
parent 16a3248aa1
commit fed2c6b4ac
3 changed files with 5 additions and 4 deletions

View File

@@ -593,7 +593,7 @@ f_cnt_t SampleBuffer::decodeSampleDS( const char * _f,
sample_rate_t & _samplerate )
{
DrumSynth ds;
f_cnt_t frames = ds.GetDSFileSamples( _f, _buf, _channels );
f_cnt_t frames = ds.GetDSFileSamples( _f, _buf, _channels, _samplerate );
if ( frames > 0 && _buf != NULL )
{