0

Triggering sound and image simultaneously using GPIO



Hi there, I'm having a problem trying to trigger a sound and an image at the same time using GPIO input in BrightAuthor. I've build a controller with three push buttons which correspond with GPIO input 0, 1 and 2 (thanks for the help with that btw <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> ). When I push button 1, I would like the image in the image zone to change to the next and let a buzzer sound in the video zone. I've managed to change the images correctly with the push of a button, but the sound doesn't get triggered properly. The sound plays constantly or plays 16 times in a row before it stops. I can't figure out how to get it right. See the images below for information about how I've set up the project. Thanks. The image zone (button 0 functions as back, 1 as forward, 2 as reset) http://www.njitram.nl/tmp/scrshot_BA.jpg Video zone with buzzer set up in a loop http://www.njitram.nl/tmp/scrshot_BA2.jpg Btw, is there a more efficient way of setting up a queue ticket system in BrightAuthor then shown in the first image?

2 comments

  • 0
    Avatar
    Martijn van Leeuwen


    Doesn't anybody know an answer to this?
  • 0
    Avatar
    RokuLyndon



    How does your queue ticket system work?

    For the audio files, the normal behavior is for the files to loop when they're played. We can use a modified autorun file to disable that loop mode so that your audio files always just play once and don't loop unless there's a media end event attached in the project, causing them to loop.

    See the custom autorun thread.
    http://forums.roku.com/viewtopic.php?f=19&t=32356&p=201154#p201154

    I just added a custom autorun that disable audio looping in brightauthor interactive projects. DIrections are in that thread for how to use it.

Please sign in to leave a comment.