[PD] readanysf~ autoplay bang

Bart Koppe bk at bartkoppe.net
Tue Feb 12 11:04:53 CET 2013


Thanks for the [delay 0] tip, it works!
Did not know of [once], will check..
ps:did not realize I was not starting a new thread, sorry for that..

Bart

On 2013-02-12 10:16, IOhannes m zmoelnig wrote:
> -----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-----
>
> _______________________________________________
> 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