Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2013 16:14:11 +0400
From:      Ruslan Makhmatkhanov <cvs-src@yandex.ru>
To:        "Joseph A. Nagy, Jr" <jnagyjr1978@gmail.com>
Cc:        "Ports @ FreeBSD" <freebsd-ports@freebsd.org>, Jack Low <xxjack12xx@gmail.com>
Subject:   Re: audio/audacity and audio/gstreamer-plugins-soundtouch fails due to SoundTouch
Message-ID:  <51236C93.8060305@yandex.ru>
In-Reply-To: <5122401B.7050005@gmail.com>
References:  <5122401B.7050005@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Joseph A. Nagy, Jr wrote on 18.02.2013 18:52:
> effects/SoundTouchEffect.cpp:209:31: error: cannot initialize a
> parameter of type 'const SAMPLETYPE *'
>        (aka 'const short *') with an lvalue of type 'float *'
>        mSoundTouch->putSamples(buffer, block);
>                                ^~~~~~
> /usr/local/include/soundtouch/SoundTouch.h:237:31: note: passing
> argument to parameter 'samples' here
>              const SAMPLETYPE *samples,  ///< Pointer to sample buffer.
>                                ^
> effects/SoundTouchEffect.cpp:215:23: error: no matching member function
> for call to 'receiveSamples'
>           mSoundTouch->receiveSamples(buffer2, outputCount);
>           ~~~~~~~~~~~~~^~~~~~~~~~~~~~
> /usr/local/include/soundtouch/FIFOSamplePipe.h:190:18: note: candidate
> function not viable: no known conversion from
>        'float *' to 'SAMPLETYPE *' (aka 'short *') for 1st argument;
>      virtual uint receiveSamples(SAMPLETYPE *outBuffer, ///< Buffer
> where to copy output samples.
>                   ^
> /usr/local/include/soundtouch/FIFOSamplePipe.h:203:18: note: candidate
> function not viable: requires 1 argument, but 2
>        were provided
>      virtual uint receiveSamples(uint maxSamples   ///< Remove this many
> samples from the beginning of pipe.
>                   ^
> effects/SoundTouchEffect.cpp:234:20: error: no matching member function
> for call to 'receiveSamples'
>        mSoundTouch->receiveSamples(buffer2, outputCount);
>        ~~~~~~~~~~~~~^~~~~~~~~~~~~~
> /usr/local/include/soundtouch/FIFOSamplePipe.h:190:18: note: candidate
> function not viable: no known conversion from
>        'float *' to 'SAMPLETYPE *' (aka 'short *') for 1st argument;
>      virtual uint receiveSamples(SAMPLETYPE *outBuffer, ///< Buffer
> where to copy output samples.
>                   ^
> /usr/local/include/soundtouch/FIFOSamplePipe.h:203:18: note: candidate
> function not viable: requires 1 argument, but 2
>        were provided
>      virtual uint receiveSamples(uint maxSamples   ///< Remove this many
> samples from the beginning of pipe.
>                   ^
> effects/SoundTouchEffect.cpp:307:31: error: cannot initialize a
> parameter of type 'const SAMPLETYPE *'
>        (aka 'const short *') with an lvalue of type 'float *'
>        mSoundTouch->putSamples(soundTouchBuffer, blockSize);
>                                ^~~~~~~~~~~~~~~~
> /usr/local/include/soundtouch/SoundTouch.h:237:31: note: passing
> argument to parameter 'samples' here
>              const SAMPLETYPE *samples,  ///< Pointer to sample buffer.
>                                ^
> effects/SoundTouchEffect.cpp:373:17: error: no matching member function
> for call to 'receiveSamples'
>     mSoundTouch->receiveSamples(outputSoundTouchBuffer, outputCount);
>     ~~~~~~~~~~~~~^~~~~~~~~~~~~~
> /usr/local/include/soundtouch/FIFOSamplePipe.h:190:18: note: candidate
> function not viable: no known conversion from
>        'float *' to 'SAMPLETYPE *' (aka 'short *') for 1st argument;
>      virtual uint receiveSamples(SAMPLETYPE *outBuffer, ///< Buffer
> where to copy output samples.
>                   ^
> /usr/local/include/soundtouch/FIFOSamplePipe.h:203:18: note: candidate
> function not viable: requires 1 argument, but 2
>        were provided
>      virtual uint receiveSamples(uint maxSamples   ///< Remove this many
> samples from the beginning of pipe.
>                   ^
> 12 warnings and 5 errors generated.
> gmake[1]: *** [effects/SoundTouchEffect.o] Error 1
> gmake[1]: Leaving directory
> `/usr/ports/audio/audacity/work/audacity-src-2.0.3/src'
> gmake: *** [audacity] Error 2
> *** [do-build] Error code 1
>
> Stop in /usr/ports/audio/audacity.
> *** [build] Error code 1
>
> Stop in /usr/ports/audio/audacity.
>
> ===>>> make failed for audio/audacity
> ===>>> Aborting update
>
> ===>>> Update for audio/audacity failed
> ===>>> Aborting update
>
> Before I attempted this build, I did:
> # cd /usr/ports/audio/audacity/
> # make rmconfig
>
> because previously I had gotten it to build with SoundTouch (which is
> installed). I cannot find any issues with either audacity or soundtouch
> in /usr/ports/UPDATING, either. Audacity isn't the only problem port I
> have because of SoundTouch. One of the gstreamer ports won't build
> because of it, either.
>
> ===>  Building for gstreamer-plugins-soundtouch-0.10.23,3
>    CC     libgstsoundtouch_la-plugin.lo
>    CXX    libgstsoundtouch_la-gstpitch.lo
> gstpitch.cc:384:17: error: no matching member function for call to
> 'receiveSamples'
>        priv->st->receiveSamples ((gfloat *) GST_BUFFER_DATA (buffer),
> samples);
>        ~~~~~~~~~~^~~~~~~~~~~~~~
> /usr/local/include/soundtouch/FIFOSamplePipe.h:190:18: note: candidate
> function not viable: no known conversion from
>        'gfloat *' (aka 'float *') to 'SAMPLETYPE *' (aka 'short *') for
> 1st argument;
>      virtual uint receiveSamples(SAMPLETYPE *outBuffer, ///< Buffer
> where to copy output samples.
>                   ^
> /usr/local/include/soundtouch/FIFOSamplePipe.h:203:18: note: candidate
> function not viable: requires 1 argument, but 2
>        were provided
>      virtual uint receiveSamples(uint maxSamples   ///< Remove this many
> samples from the beginning of pipe.
>                   ^
> gstpitch.cc:901:25: error: cannot initialize a parameter of type 'const
> SAMPLETYPE *' (aka 'const short *') with an
>        rvalue of type 'gfloat *' (aka 'float *')
>    priv->st->putSamples ((gfloat *) GST_BUFFER_DATA (buffer),
>                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/soundtouch/SoundTouch.h:237:31: note: passing
> argument to parameter 'samples' here
>              const SAMPLETYPE *samples,  ///< Pointer to sample buffer.
>                                ^
> 2 errors generated.
> gmake: *** [libgstsoundtouch_la-gstpitch.lo] Error 1
> *** [do-build] Error code 2
>
> Stop in /usr/ports/audio/gstreamer-plugins-soundtouch.
>
> ===>>> make failed for audio/gstreamer-plugins-soundtouch
> ===>>> Aborting update
>
> ===>>> Update for audio/gstreamer-plugins-soundtouch failed
> ===>>> Aborting update
>
> ===>>> Update for multimedia/gstreamer-plugins-all failed
> ===>>> Aborting update
>
> Now, audio/audacity no longer includes a configurable option (via make
> config) to include/not include soundtouch, and of course
> audio/gstreamer-plugins-soundtouch would require soundtouch. Right now
> I'm more interested in getting Audacity back up and running. Any help
> would be appreciated.
>
> # uname -a
> FreeBSD alex-laptop 9.1-RELEASE FreeBSD 9.1-RELEASE #8: Tue Jan 22
> 14:00:27 CST 2013     root@alex-laptop:/usr/obj/usr/src/sys/ALEX-LAPTOP
>   amd64

I'd ask maintainer about that (cc:ed). You may try to add 
--without-soundtouch into Makefile:CONFIGURE_ARGS as a workaround for 
the time being.

-- 
Regards,
Ruslan

Tinderboxing kills... the drives.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51236C93.8060305>