Process main volume. Allow importing audio files directly. Tweaks etc

This commit is contained in:
xenakios
2017-11-14 18:14:14 +02:00
parent 7dcbaedb8f
commit 6487880fb3
7 changed files with 58 additions and 12 deletions

View File

@ -119,7 +119,7 @@ public:
int getPrebufferThreadPriority() { return m_prebufthreadprior; }
private:
REALTYPE volume;
int m_prebufthreadprior = 5;
int m_prebufthreadprior = 4;
int get_optimized_updown(int n,bool up);
int optimizebufsize(int bufsize);
std::string getfftsizestr(int fftsize);

View File

@ -141,7 +141,7 @@ void StretchAudioSource::getNextAudioBlock(const AudioSourceChannelInfo & buffer
for (auto& e : m_stretchers)
e->set_freezing(m_freezing);
}
double maingain = 0.5; // Decibels::decibelsToGain((double)val_MainVolume.getValue());
double maingain = Decibels::decibelsToGain((double)val_MainVolume.getValue());
if (m_vol_smoother.getTargetValue() != maingain)
m_vol_smoother.setValue(maingain);
FloatVectorOperations::disableDenormalisedNumberSupport();