<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hello,<div>Thanks @cyrille, found the answer to my arguments for open question in the help file as you said.</div><div><br></div><div>@ben: first, hi!</div><div>second, i'm a ware of a number of 3rd party externals for pd that are supposed to do streaming in, like mp3amp~ and ogg~ and readanysf~</div>

<div>but none of them are really working in pd-vanilla on rpi for me.  some crash right away, and others never get a stream.</div><div><br></div><div>sox on the other hand is working beautifully and is rather robust, and the fifo solution for getting audio into pd seems critical/awesome enough that i'm keen on figuring it out.  i see that sox is getting the stream (i have tested it by sending it to pifm and its there), but i'm just hung up on the header format of the file.  pd doesn't like it.</div>

<div><br></div><div>i'm wondering if there are details in 'mkfifa' that make it better for pd reading</div><div>i'll report back if i discover something...</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>a</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 5:15 PM, Benjamin ~ 01xy via Pd-list <span dir="ltr"><<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello,<br>
<br>
not the answer, but you can open stream inside PD with readanysf~ if you can accept this dependency <a href="http://aug.ment.org/readanysf/" target="_blank">http://aug.ment.org/readanysf/</a><br>
else y use this command to pipe a raw flux to sox > stream, maybe you can adapt :<br>
<br>
    sox -t raw --ignore-length -r 44100 -e signed-integer -b 16 -c 2 bridge.fifo -t ogg -C 5 - | oggfwd <a href="http://labomedia.org" target="_blank">labomedia.org</a> 8000 rclabo01 /streamtest.ogg<br>
<br>
or I modified .asoundrc so as to allow a non jack software (sox/aplay) to get into jackd as an input :<br>
<br>
cat ~/.asoundrc<br>
<br>
pcm.rawjack {<br>
    type jack<br>
    playback_ports {<br>
        0 system:playback_1<br>
        1 system:playback_2<br>
    }<br>
   capture_ports {<br>
       0 system:capture_1<br>
       1 system:capture_2<br>
   }<br>
}<br>
<br>
pcm.jack {<br>
    type plug<br>
    slave { pcm "rawjack" }<br>
    hint {<br>
     description "JACK Audio Connection Kit"<br>
    }<br>
}<br>
<br>
and then :<br>
<br>
aplay -i anyaudiofile-flux -v -D rawjack<br>
<br>
hopes it can help<br>
<br>
++<br>
b<br>
<br>
Le 19/06/2014 16:56, Ali Momeni via Pd-list a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<br>
<br>
<br>
Hello Cyrille,<br>
<br>
Thanks for the help<br>
still have the same problem:<br>
<br>
<br>
<br>
        *dsp:/home/pi/tempaudio: unknown or bad header format*<br>
<br>
    try providing the header to pd<br>
    open ~/tempaudio 0 0 1 2 b<br>
<br>
<br>
<br>
no error when i send this open message,<br>
but when i "start", i still get<br>
<br>
"unknown or bad header format<br>
<br>
where do you get those numbers, 0 0 1 2 b ?<br>
<br>
ali<br>
cheers<br>
c<br>
<br>
    *<br>
<br>
    *<br>
    i've tried some other params in the sox write command but i get<br>
    the bad header error no matter what i do.<br>
<br>
    any thoughts?<br>
<br>
    thanks,<br>
<br>
    ali<br>
<br>
<br>
    ______________________________<u></u>_________________<br></div>
    <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> <mailto:<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a>> mailing list<div><br>
    UNSUBSCRIBE and account-management -><br>
    <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
<br>
<br>
______________________________<u></u>_________________<br>
</div><a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> <mailto:<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a>> mailing list<div><br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
</div></blockquote><div><div>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
</div></div></blockquote></div><br></div>
</div></div></div><br></div>