[PD] readanysf~ autoplay bang

IOhannes m zmoelnig zmoelnig at iem.at
Tue Feb 12 10:16:47 CET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-02-12 09:58, Bart Koppe wrote:
> Dear list,
> 
> I'm working on a live-radio-station-patch. I want to be able to
> play prepared playlists via PD. In the end I choose for readanysf~
> to play the sound files since it seemed most stable (right?) and
> handle enough different file formats like ogg. Now I need a
> mechanism to autoplay a file directly when the buffer is loaded. So
> I tried to do this with the "ready" value from readanysf~.
> Basically it now bangs when the file is loaded, but the message
> "Play" doesn?t seem to get through, file does not start playing..
> 
> The example below is with the open-dialog, but in my main patch
> it's more automated. Effect is the same though.. (reset onebang not
> automated here, need to bang before loading the file)
> 
> Is it a bug, or am i the bug :) Is there a different approach?
> 

i think it is a re-entrancy bug in [readanysf~], where you must not
change the state *while* [readanysf~] is still outputting the
data....or something along those lines.
until it is fixed, you can simply put a [delay 0] before your
[onebang] (don't know this object, but i guess it is a stripped down
version of [once])


fgmadr
IOhannes

PS: please start new threads for new threads
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlEaCHwACgkQkX2Xpv6ydvRDRgCffhCqFGPRFrprWO9S+5bTW2+P
5LkAn37UTyyvJ22iEeC1XlGXRs3LYYZO
=lZ53
-----END PGP SIGNATURE-----



More information about the Pd-list mailing list