diff options
author | Jörg Müller <nexyon@gmail.com> | 2020-12-24 12:39:28 +0300 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2020-12-24 12:42:16 +0300 |
commit | 83ad35cb9c41c7e7df5ff239e5c2232742f4d5b6 (patch) | |
tree | 52848e205ace38234c09d55df6bfaa93fca3f0a2 /extern/audaspace/include | |
parent | c9efb5424079189951a0eebc968a33787878b039 (diff) |
Fix T83997: Duplicated audio does not sound the same
The issue was that sounds were always faded from 0 volume when they
started and depending on the currently used buffer size, the fading took
longer or shorter.
The solution stores whether the sound has ever been played back and
consequently does not fade when starting to play back.
Diffstat (limited to 'extern/audaspace/include')
-rw-r--r-- | extern/audaspace/include/devices/SoftwareDevice.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extern/audaspace/include/devices/SoftwareDevice.h b/extern/audaspace/include/devices/SoftwareDevice.h index e92a35e5402..a350550048b 100644 --- a/extern/audaspace/include/devices/SoftwareDevice.h +++ b/extern/audaspace/include/devices/SoftwareDevice.h @@ -72,6 +72,9 @@ protected: /// The channel mapper reader in between. std::shared_ptr<ChannelMapperReader> m_mapper; + /// Whether the source is being read for the first time. + bool m_first_reading; + /// Whether to keep the source if end of it is reached. bool m_keep; |