[Tiptoi] Prevent interruption of play

Till Korten korten at mpi-cbg.de
Fr Jun 30 09:46:06 CEST 2017


Have you tried something like this (untested):

product-id: 930
media-path: audio/%s
init: $playing:=0
scripts:
   play_one:
   - $playing==0? $playing:=1 P(hint1) $playing:=0
   play_two:
   - $playing==0? $playing:=1 P(hint2) $playing:=0

On 30.06.2017 09:02, Michael Thon wrote:
> Hi there,
>
> I am new to tttool, and already having lots of fun. Thanks!
>
> 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.
>
> Alternatively, is there some way to only execute the other commands (changing state) that follow the play command if the play has completed uninterrupted?
>
> I'm grateful for any hints, and for the effort that has gone into hacking the tiptoi.
>
> Thanks,
> Michael

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : korten.vcf
Dateityp    : text/x-vcard
Dateigröße  : 230 bytes
Beschreibung: nicht verfügbar
URL         : <https://lists.nomeata.de/pipermail/tiptoi/attachments/20170630/00a491b7/attachment.vcf>


Mehr Informationen über die Mailingliste tiptoi