Announcement

Collapse
No announcement yet.

Stop playing an audio file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Stop playing an audio file

    Hi,
    I've been trying to work through implementing an alarm clock in HSTouch. I can start an audio file (of alarm beeps) playing through the tablet running HStouch just fine, but when it comes to stopping the sound when you press 'off' or 'snooze' I am stumped - there isn't a 'stop playing' event action.

    Has anyone got any tips on how I could get an audio file to stop playing on a button press?

    Thanks,

    Jon.

    #2
    Solution

    I did it by playing another audio file...only that one was just 1 second of dead air. In my case I set the press element to play wav file and the release element to play the 1 second of dead air. Then I setup the events I was using to simulate the press and release of those elements as needed.

    Comment

    Working...
    X