File nootka-soundtouch.patch of Package nootka

diff -up nootka-2.0.2-source/src/libs/sound/toggscale.cpp.orig nootka-2.0.2-source/src/libs/sound/toggscale.cpp
--- nootka-2.0.2-source/src/libs/sound/toggscale.cpp.orig	2021-08-16 20:04:19.000000000 +0200
+++ nootka-2.0.2-source/src/libs/sound/toggscale.cpp	2022-03-01 08:54:28.350161802 +0100
@@ -451,7 +451,8 @@ void ToggScale::decodeAndResample() {
 void ToggScale::adjustSoundTouch() {
   if (m_innerOffset != 0.0 || m_pitchOffset != 0.0 || m_sampleRate != 44100) { // SoundTouch has got a job
       m_touch->setSampleRate(44100);
-      m_touch->setPitchSemiTones(m_innerOffset + m_pitchOffset);
+      int newoffset = (int)(m_innerOffset + m_pitchOffset);
+      m_touch->setPitchSemiTones(newoffset);
       if (m_sampleRate != 44100) {
         qreal newRate =  44100.0 / static_cast<qreal>(m_sampleRate);
         m_touch->setRate(newRate);
openSUSE Build Service is sponsored by