Make audio source set play range immediately if it is set when the seek crossfade is active. This effectively disables the smoothed audio but this will have to do for now. The smoothed playback needs to be redesigned from scratch later. Revert the larger disk buffer size. Readme changes.
This commit is contained in:
parent
27aabd5e57
commit
b4af0d0ebf
@ -41,7 +41,7 @@ class AInputS final : public InputS
|
|||||||
public:
|
public:
|
||||||
AInputS(AudioFormatManager* mana) : m_manager(mana)
|
AInputS(AudioFormatManager* mana) : m_manager(mana)
|
||||||
{
|
{
|
||||||
m_readbuf.setSize(2, 65536*8);
|
m_readbuf.setSize(2, 65536*2);
|
||||||
m_readbuf.clear();
|
m_readbuf.clear();
|
||||||
m_crossfadebuf.setSize(2, 44100);
|
m_crossfadebuf.setSize(2, 44100);
|
||||||
m_crossfadebuf.clear();
|
m_crossfadebuf.clear();
|
||||||
@ -350,6 +350,11 @@ public:
|
|||||||
m_seekfade.counter = 0;
|
m_seekfade.counter = 0;
|
||||||
m_seekfade.state = 1;
|
m_seekfade.state = 1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_seekfade.state = 0;
|
||||||
|
setActiveRangeImpl(rng);
|
||||||
|
}
|
||||||
m_seekfade.length = 2048;
|
m_seekfade.length = 2048;
|
||||||
}
|
}
|
||||||
void setLoopEnabled(bool b) override
|
void setLoopEnabled(bool b) override
|
||||||
|
@ -727,7 +727,7 @@ void StretchAudioSource::setOnsetDetection(double x)
|
|||||||
|
|
||||||
void StretchAudioSource::setPlayRange(Range<double> playrange)
|
void StretchAudioSource::setPlayRange(Range<double> playrange)
|
||||||
{
|
{
|
||||||
if ((m_playrange.isEmpty() == false && playrange == m_playrange) || playrange==m_inputfile->getActiveRange())
|
if (playrange == m_playrange || playrange == m_inputfile->getActiveRange())
|
||||||
return;
|
return;
|
||||||
if (m_cs.tryEnter())
|
if (m_cs.tryEnter())
|
||||||
{
|
{
|
||||||
|
@ -7,12 +7,11 @@ Copyright (C) 2017-2018 Xenakios
|
|||||||
Released under GNU General Public License v.2 license.
|
Released under GNU General Public License v.2 license.
|
||||||
|
|
||||||
History :
|
History :
|
||||||
05-31-2018 1.2.1
|
06-01-2018 1.2.1
|
||||||
-Added looping enabled parameter
|
-Added looping enabled parameter
|
||||||
-Added GUI button and parameter to rewind to beginning of selected time range
|
-Added GUI button and parameter to rewind to beginning of selected play range
|
||||||
-Flush old stretched audio faster when source audio is changed
|
-Flush old stretched audio faster when source audio is changed
|
||||||
-Increase disk read buffer size
|
-Fix play range not being recalled properly when loading host project
|
||||||
-Fix time range not being recalled properly when loading host project
|
|
||||||
05-07-2018 1.2.0
|
05-07-2018 1.2.0
|
||||||
-Changed "Octaves" module to "Ratios". The Ratios module has more shifters than the previous
|
-Changed "Octaves" module to "Ratios". The Ratios module has more shifters than the previous
|
||||||
Octaves module and allows changing the pitch ratios (and the shifters mix)
|
Octaves module and allows changing the pitch ratios (and the shifters mix)
|
||||||
|
Loading…
Reference in New Issue
Block a user