<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">No, PA(...) and also PA*(...) audio can be interrupted.</div><br class=""><div><blockquote type="cite" class=""><div class="">On 30. Jun 2017, at 11:51, Boris Baumann <<a href="mailto:boris.baumann@googlemail.com" class="">boris.baumann@googlemail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi Thon!<br class=""><br class=""></div>Did  PA(...) instead of P(...) works for you?<br class=""><br class=""><br class=""><br class=""><br class=""></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class="">--<br class="">pgpid: 0x44B30067<br class="">9288 B559 5CC4 208C 98DA 29AD DECC 272C 44B3 0067<br class=""><br class=""><br class=""></div></div></div></div></div></div></div></div></div></div></div>
<br class=""><div class="gmail_quote">2017-06-30 11:08 GMT+02:00 Michael Thon <span dir="ltr" class=""><<a href="mailto:m7.thon@gmail.com" target="_blank" class="">m7.thon@gmail.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br class="">
<br class="">
I tried your suggestion, and it doesn't work. However, the following construction does appear to do what I want (at least on my older tiptoi):<br class="">
<span class=""><br class="">
product-id: 930<br class="">
media-path: audio/%s<br class="">
init: $playing:=0<br class="">
scripts:<br class="">
 play_one:<br class="">
</span> - $playing==0? $playing:=1 J(done) P(hint1)<br class="">
 play_two:<br class="">
 - $playing==0? $playing:=1 J(done) P(hint2)<br class="">
 done:<br class="">
- $playing:=0<br class="">
<br class="">
Interestingly, it is crucial to use a jump instruction, and to put the jump instruction *before* the play instruction.<br class="">
<br class="">
If the jump instruction is at the end of the line, then the jump can get interrupted. What I mean is: tipping on something during the play of the hint will not interrupt the playing of the hint, but the jump will no longer be executed, i.e., $playing is not reset to 0. If the jump instruction is put before the play instruction, then this does not happen, but the instruction is apparently only executed after the play finishes anyway. Weird stuff (but not unexpected after reading the other posts about the order of J() and P() instructions). I'd be curious to know if this works on newer tiptoi pens as well.<br class="">
<br class="">
I'll use this for now, but perhaps there is a better way.<br class="">
<br class="">
Thanks,<br class="">
Michael<br class="">
<div class=""><div class="h5"><br class="">
<br class="">
> On 30. Jun 2017, at 09:46, Till Korten <<a href="mailto:korten@mpi-cbg.de" class="">korten@mpi-cbg.de</a>> wrote:<br class="">
><br class="">
> Have you tried something like this (untested):<br class="">
><br class="">
> product-id: 930<br class="">
> media-path: audio/%s<br class="">
> init: $playing:=0<br class="">
> scripts:<br class="">
>  play_one:<br class="">
>  - $playing==0? $playing:=1 P(hint1) $playing:=0<br class="">
>  play_two:<br class="">
>  - $playing==0? $playing:=1 P(hint2) $playing:=0<br class="">
><br class="">
> On 30.06.2017 09:02, Michael Thon wrote:<br class="">
>> Hi there,<br class="">
>><br class="">
>> I am new to tttool, and already having lots of fun. Thanks!<br class="">
>><br class="">
>> I am preparing a treasure hunt, and it would be very helpful if there was some way to prevent the tiptoi from interrupting the audio played by a play command. Currently, when audio is playing, and some other oid (with sound?) is clicked, then the audio output is interrupted. I thought I had read somewhere that there is some special register that sets the tiptoi to "non-interrupting mode", or something like that, but I cannot find it anymore, and maybe I was just dreaming.<br class="">
>><br class="">
>> Alternatively, is there some way to only execute the other commands (changing state) that follow the play command if the play has completed uninterrupted?<br class="">
>><br class="">
>> I'm grateful for any hints, and for the effort that has gone into hacking the tiptoi.<br class="">
>><br class="">
>> Thanks,<br class="">
>> Michael<br class="">
><br class="">
</div></div>> <korten.vcf>--<br class="">
<div class="HOEnZb"><div class="h5">> tiptoi mailing list<br class="">
> <a href="mailto:tiptoi@lists.nomeata.de" class="">tiptoi@lists.nomeata.de</a><br class="">
> <a href="https://lists.nomeata.de/mailman/listinfo/tiptoi" rel="noreferrer" target="_blank" class="">https://lists.nomeata.de/<wbr class="">mailman/listinfo/tiptoi</a><br class="">
<br class="">
<br class="">
--<br class="">
tiptoi mailing list<br class="">
<a href="mailto:tiptoi@lists.nomeata.de" class="">tiptoi@lists.nomeata.de</a><br class="">
<a href="https://lists.nomeata.de/mailman/listinfo/tiptoi" rel="noreferrer" target="_blank" class="">https://lists.nomeata.de/<wbr class="">mailman/listinfo/tiptoi</a><br class="">
</div></div></blockquote></div><br class=""></div>
-- <br class="">tiptoi mailing list<br class=""><a href="mailto:tiptoi@lists.nomeata.de" class="">tiptoi@lists.nomeata.de</a><br class="">https://lists.nomeata.de/mailman/listinfo/tiptoi<br class=""></div></blockquote></div><br class=""></body></html>