Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soundtouch 1.5.0 upgrade #5381

Closed
mixxxbot opened this issue Aug 22, 2022 · 11 comments
Closed

soundtouch 1.5.0 upgrade #5381

mixxxbot opened this issue Aug 22, 2022 · 11 comments
Labels

Comments

@mixxxbot
Copy link
Collaborator

Reported by: kwhat
Date: 2010-04-13T04:14:01Z
Status: Fix Released
Importance: Wishlist
Launchpad Issue: lp562007
Attachments: mixxx-1.7.2.patch, mixxx-1.8.0-libsoundtouch.patch, mixxx-9999-libsoundtouch.patch


looks like sound touch 1.5.0 incorporated in the 1.4.1 patched coded included in mixxx.

I have attached a build patch I adapted from the Debian branch to use the external library. This also includes a small patch to remove invalid qt linker paths. You may wish to remove these.

@mixxxbot
Copy link
Collaborator Author

Commented by: kwhat
Date: 2010-04-13T04:14:01Z
Attachments: mixxx-1.7.2.patch

@mixxxbot
Copy link
Collaborator Author

Commented by: kwhat
Date: 2010-09-10T06:33:12Z


current sed patch for externalizing.

        # patch external libsoundtouch (should be a patch file)
        #sed -i -e '/^#SoundTouch\$/,/^#KissFFT\$/c\#SoundTouch\nsources += Split(\"\"\"engine/enginebufferscalest.cpp\"\"\")\nenv.Append(CPPPATH = [ ARGUMENTS.get('prefix', '/usr/local') + '/include/soundtouch' ])\nenv.Append(LIBS = 'SoundTouch')\n\n#KissFFT" \
        sed -i -e "/#SoundTouch/,/#KissFFT/c\
#SoundTouch\n\
sources += Split(\"\"\"engine/enginebufferscalest.cpp\"\"\")\n\
env.Append(CPPPATH = [ ARGUMENTS.get('prefix', '/usr/local') + '/include/soundtouch' ])\n\
env.Append(LIBS = 'SoundTouch')\n\
\n\
#KissFFT" \
                        src/SConscript.env || die "sed libsoundtouch failed"

        sed -i -e "/# SoundTouch Optimizations/,/#Debugging output/c\#Debugging output" \
                src/SConscript.env || die "sed libsoundtouch failed"

@mixxxbot
Copy link
Collaborator Author

Commented by: kwhat
Date: 2010-09-23T07:02:44Z
Attachments: mixxx-1.8.0-libsoundtouch.patch


updated patch file,  Trunk please ;)

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2010-09-23T17:23:35Z


Hey KWhat,

Thanks for the patch. The version of soundtouch in Ubuntu is 1.3.1 still, and will be for 10.10. Also, we would then have to build SoundTouch for our OSX and Windows packages, so there is more work to be done for getting a patch that would remove SoundTouch from our source tree ready.

I do think we should upgrade the version of SoundTouch in Mixxx to 1.4.1 now that the 1.8.0 release is basically over.

Regards,
RJ

@mixxxbot
Copy link
Collaborator Author

Commented by: Pegasus-RPG
Date: 2010-10-11T19:12:10Z


I quickly tested ST v1.5.0 in the 1.7 Mixxx branch a long time ago and ran into no issues on Windows. Building a new version for Windows is not a problem. As for Ubuntu, can't we add it to our PPA?

So I'm in favor of doing this in Trunk in time for 1.9.0 as well.

@mixxxbot
Copy link
Collaborator Author

Commented by: kwhat
Date: 2010-10-29T22:54:59Z
Attachments: mixxx-9999-libsoundtouch.patch


I have attached a new approach for getting libsoundtouch playing nicely across platforms. Basically it adds an option to externalize it which should address some of the problems with ubuntu and other platforms where a more recent version of soundtouch is not available. I have tested this on linux and it appears to work in both cases.

@mixxxbot
Copy link
Collaborator Author

Commented by: Pegasus-RPG
Date: 2010-10-30T06:17:29Z


RJ: if we'd continue to use our own version anyway, why not go with the latest, 1.5.0?

@mixxxbot
Copy link
Collaborator Author

Commented by: quadrispro
Date: 2011-01-17T11:12:38Z


Hi,

soundtouch 1.5.0 has joined Debian experimental, so please provide us a clean way to avoid building against the local copy of the library.

Thanks in advance.

@mixxxbot
Copy link
Collaborator Author

Commented by: kwhat
Date: 2011-01-17T19:13:33Z


Hi Alessio,

Take a look at the gentoo bug report ( http://bugs.gentoo.org/show_bug.cgi?id=310821 ). The libsoundtouch patches are all up to date (1.9.0 beta 1).

Hope that helps.

@mixxxbot
Copy link
Collaborator Author

Commented by: kwhat
Date: 2011-02-01T22:35:54Z


I have updated the internal version of sound touch to 1.5.0 in my branch and built successfully. Everything appears to be working fine, more testing is needed. The 1.5.0 external lib has been rock solid for me for the last 4 months and I dont expect the internal to cause any issues. It should be noted that there are some changes to the way optimization is done in the scons script. There is no point in using mmx, sse and 3dnow together. The code will only build with one in the order I listed them in. Because SSE is faster and because you optimize for it at every level > 1 I have added only that version. Apparently this lib can also do int samples... I don't know if that is something that maybe beneficial to mixxx so its disabled in favor of float samples. If int samples are desired, please change #define FLOAT_SAMPLES 1 to 0 and build mmx_optimized.cpp instead of the current sse_optimized.cpp. Additional tweaking maybe required.

On a separate note, fidlib-0.9.9 could also use and update to 0.9.10.

@mixxxbot
Copy link
Collaborator Author

Issue closed with status Fix Released.

@mixxxbot mixxxbot transferred this issue from another repository Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant