mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-19 20:26:24 -04:00
Remove global oversampling (#7228)
Oversampling can have many different effects to the audio signal such as latency, phase issues, clipping, smearing, etc, so this should really be an option on a per-plugin basis, not globally across all of LMMS (which, in some places, shouldn't really need to oversample at all but were oversampled anyways).
This commit is contained in:
@@ -53,7 +53,7 @@ SaProcessor::SaProcessor(const SaControls *controls) :
|
||||
m_terminate(false),
|
||||
m_inBlockSize(FFT_BLOCK_SIZES[0]),
|
||||
m_fftBlockSize(FFT_BLOCK_SIZES[0]),
|
||||
m_sampleRate(Engine::audioEngine()->processingSampleRate()),
|
||||
m_sampleRate(Engine::audioEngine()->outputSampleRate()),
|
||||
m_framesFilledUp(0),
|
||||
m_spectrumActive(false),
|
||||
m_waterfallActive(false),
|
||||
@@ -166,7 +166,7 @@ void SaProcessor::analyze(LocklessRingBuffer<sampleFrame> &ring_buffer)
|
||||
#endif
|
||||
|
||||
// update sample rate
|
||||
m_sampleRate = Engine::audioEngine()->processingSampleRate();
|
||||
m_sampleRate = Engine::audioEngine()->outputSampleRate();
|
||||
|
||||
// apply FFT window
|
||||
for (unsigned int i = 0; i < m_inBlockSize; i++)
|
||||
|
||||
Reference in New Issue
Block a user