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:
xenakios
2018-06-01 14:20:01 +03:00
parent 27aabd5e57
commit b4af0d0ebf
3 changed files with 10 additions and 6 deletions

View File

@ -41,7 +41,7 @@ class AInputS final : public InputS
public:
AInputS(AudioFormatManager* mana) : m_manager(mana)
{
m_readbuf.setSize(2, 65536*8);
m_readbuf.setSize(2, 65536*2);
m_readbuf.clear();
m_crossfadebuf.setSize(2, 44100);
m_crossfadebuf.clear();
@ -350,6 +350,11 @@ public:
m_seekfade.counter = 0;
m_seekfade.state = 1;
}
else
{
m_seekfade.state = 0;
setActiveRangeImpl(rng);
}
m_seekfade.length = 2048;
}
void setLoopEnabled(bool b) override