[PD] patching readanysf~ (was: playing soundcloud files)

Roman Haefeli reduzent at gmail.com
Thu Aug 30 08:50:09 CEST 2012


Hi Jack

I'm not really knowledgeable about Makefiles and C code, but I assume
you're trying to patch not the exact same version of readanysf~ that the
patch was written for.

The patch was written for Debian version  0.42-1 (which is made of 0.42
upstream sources). If you are on Debian testing or unstable or on Ubuntu
12.04, you could do:

$ apt-get sources pd-readanysf 

to get the correct sources.

If you're on Ubuntu 12.04, you could also use my PPA, which hosts a
fixed version of [readanysf~]:

$ sudo apt-add-repository ppa:reduzierer/rdz-pd-extra+deps
$ sudo aptitude update
$ sudo aptitude install pd-readanysf

Roman


On Mit, 2012-08-29 at 17:54 +0200, Jack wrote:
> Hello Roman,
> 
> I tried to apply the IOhannes's patch on the Makefile of readanysf~ :
> 
> Author: IOhannes m zmölnig
> Description: get linking order right (objects/libs that depends on other
> libs
>  should come before the dependencies)
> --- pd-readanysf.orig/Makefile
> +++ pd-readanysf/Makefile
> @@ -31,7 +31,7 @@
>  #PD_CXXFLAGS += -O1 -funroll-loops -fomit-frame-pointer \
>  #    -Wall -W -Wshadow \
>  #    -Wno-unused -Wno-parentheses -Wno-switch
> -PD_LDFLAGS =  -L/usr/local/lib -lpthread  -lgavl -lgmerlin_avdec
> +PD_LDFLAGS =  -L/usr/lib -lgmerlin_avdec -lgavl -lpthread
>  else
>  # assume darwin here
>  STRIP=strip -x
> @@ -55,11 +55,12 @@
>  all: $(TARGET)
> 
>  pd_linux: src/readanysf~.cpp  objs/FifoVideoFrames.o
> objs/FifoAudioFrames.o objs/ReadMedia.o
> -       g++  -shared  -o  readanysf~.pd_linux  $(PD_CXXFLAGS)
> $(PD_LDFLAGS) \
> +       g++  -shared  -o  readanysf~.pd_linux  $(PD_CXXFLAGS) \
>         src/readanysf~.cpp \
>         objs/FifoAudioFrames.o \
>         objs/FifoVideoFrames.o \
> -       objs/ReadMedia.o
> +       objs/ReadMedia.o \
> +       $(PD_LDFLAGS)
>         $(STRIP) readanysf~.pd_linux
> 
>  pd_darwin: src/readanysf~.cpp  objs/FifoVideoFrames.o
> objs/FifoAudioFrames.o objs/ReadMedia.o
> 
> 
> 
> After i copy patch.txt in .../august/readanysf~
> and
> $ cd .../august/readanysf~
> $ patch < patch.txt
> 
> I get :
> patching file Makefile
> Hunk #1 FAILED at 31.
> Hunk #2 FAILED at 55.
> 2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
> 
> The Makefile.rej is :
> 
> --- Makefile
> +++ Makefile
> @@ -31,7 +31,7 @@
>  #PD_CXXFLAGS += -O1 -funroll-loops -fomit-frame-pointer \
>  #    -Wall -W -Wshadow \
>  #    -Wno-unused -Wno-parentheses -Wno-switch
> -PD_LDFLAGS =  -L/usr/local/lib -lpthread  -lgavl -lgmerlin_avdec
> +PD_LDFLAGS =  -L/usr/lib -lgmerlin_avdec -lgavl -lpthread
>  else
>  # assume darwin here
>  STRIP=strip -x
> @@ -55,11 +55,12 @@
>  all: $(TARGET)
>  
>  pd_linux: src/readanysf~.cpp  objs/FifoVideoFrames.o
> objs/FifoAudioFrames.o objs/ReadMedia.o
> -       g++  -shared  -o  readanysf~.pd_linux  $(PD_CXXFLAGS)
> $(PD_LDFLAGS) \
> +       g++  -shared  -o  readanysf~.pd_linux  $(PD_CXXFLAGS) \
>         src/readanysf~.cpp \
>         objs/FifoAudioFrames.o \
>         objs/FifoVideoFrames.o \
> -       objs/ReadMedia.o
> +       objs/ReadMedia.o \
> +       $(PD_LDFLAGS)
>         $(STRIP) readanysf~.pd_linux
>  
>  pd_darwin: src/readanysf~.cpp  objs/FifoVideoFrames.o
> objs/FifoAudioFrames.o objs/ReadMedia.o
> 
> 
> I think i missed something ?
> ++
> 
> Jack
> 
> 
> 
> 
> Le 29/08/2012 15:51, Roman Haefeli a écrit :
> > On Mit, 2012-08-29 at 14:46 +0100, Andrew Faraday wrote:
> >> It could if they provide you with a download link... I'd have to guess
> >> that they won't, tho. It would undermine their whole buisness plan. 
> > They do. I don't know the specifics, but I assume it's up to the author
> > to allow the download of the mp3-file or not. The example below uses
> > such a download link from soundcloud.com.
> >
> >
> > Roman
> >
> >
> >>> Date: Wed, 29 Aug 2012 09:13:28 -0300
> >>> Subject: Re: [PD] playing soundcloud files
> >>> From: lemota at gmail.com
> >>> To: reduzent at gmail.com
> >>> CC: jbturgid at hotmail.com; pd-list at iem.at
> >>>
> >>> can that be used with Spotify or Grooveshark?
> >>>
> >>> On Wed, Aug 29, 2012 at 9:09 AM, Roman Haefeli <reduzent at gmail.com>
> >> wrote:
> >>>> On Die, 2012-08-28 at 20:48 +0100, Andrew Faraday wrote:
> >>>>> That sounds good, but how exactly? Do you have an example patch?
> >>>> I think the help patch explains it quite well.
> >>>>
> >>>> A real world example:
> >>>>
> >>>> [open http://soundcloud.com/reduzent/backup-blues/download (
> >>>> |
> >>>> | [play(
> >>>> |/
> >>>> [readanysf~]
> >>>> | |
> >>>> [dac~ ]
> >>>>
> >>>> Roman
> >>>>
> >>>>
> >>>>
> >>>>>> From: reduzent at gmail.com
> >>>>>> To: pd-list at iem.at
> >>>>>> Date: Mon, 27 Aug 2012 22:32:04 +0200
> >>>>>> Subject: Re: [PD] playing soundcloud files
> >>>>>>
> >>>>>> [readanysf~] does not only play many encodings and file
> >> formats, but
> >>>>>> supports also a lot of protocols, including http. You can
> >> directly
> >>>>> open
> >>>>>> a track on soundcloud.com with [readanysf~]. There is no need
> >> to
> >>>>>> download the file first with wget or whatsoever.
> >>>>>>
> >>>>>> Roman
> >>>>>>
> >>>>>>
> >>>>>> On Don, 2012-08-23 at 13:13 +0200, Patrice Colet wrote:
> >>>>>>> [wget -O source file(-[shell] & [read file(-[readanysf~]
> >>>>>>>
> >>>>>>> use [popen] on windows and an executable of wget
> >>>>>>>
> >>>>>>> Colet Patrice
> >>>>>>>
> >>>>>>> ----- Mail original -----
> >>>>>>>> De: "alessandro contini" <aless.contini at gmail.com>
> >>>>>>>> À: "PD list" <pd-list at iem.at>
> >>>>>>>> Envoyé: Jeudi 23 Août 2012 12:49:42
> >>>>>>>> Objet: [PD] playing soundcloud files
> >>>>>>>>
> >>>>>>>> Hey pd-people,
> >>>>>>>>
> >>>>>>>> I'm just wondering if any of you ever tried loading an
> >> audio
> >>>>> file
> >>>>>>>> hosted by
> >>>>>>>> soundcloud into a PD patch.
> >>>>>>>> I'm thinking about something like [openpanel] +
> >> [soundfiler] but
> >>>>>>>> sourcing
> >>>>>>>> the audio data from a soundcloud account.
> >>>>>>>>
> >>>>>>>> Any idea? Suggestions?
> >>>>>>>> Thanks!
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>>
> >>>>>>>> // ALESSANDRO CONTINI
> >>>>>>>>
> >>>>>>>> // www.alessandrocontini.it
> >>>>>>>> // skype: alessandro_contini
> >>>>>>>> // DE: +49-176-38600277
> >>>>>>>> // ITA: +39-340-2686996
> >>>>>>>>
> >>>>>>>> _______________________________________________
> >>>>>>>> Pd-list at iem.at mailing list
> >>>>>>>> UNSUBSCRIBE and account-management ->
> >>>>>>>> http://lists.puredata.info/listinfo/pd-list
> >>>>>>>>
> >>>>>>> _______________________________________________
> >>>>>>> Pd-list at iem.at mailing list
> >>>>>>> UNSUBSCRIBE and account-management ->
> >>>>> http://lists.puredata.info/listinfo/pd-list
> >>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> Pd-list at iem.at mailing list
> >>>>>> UNSUBSCRIBE and account-management ->
> >>>>> http://lists.puredata.info/listinfo/pd-list
> >>>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Pd-list at iem.at mailing list
> >>>> UNSUBSCRIBE and account-management ->
> >> http://lists.puredata.info/listinfo/pd-list
> >>
> >
> >
> > _______________________________________________
> > Pd-list at iem.at mailing list
> > UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
> 
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list