0

Touch sound



Hello,

I have problem with scripting.

My configuration is HD2000, display 1920x1080 px witch touch panel on screen with usb connection. This is selection between 9 videos wich are start events via UDP on next HD2000 on 65" LCD monitor.
I would like prepare script, when I touch display I can hear some sound (like on mobile phones <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> ) but I dont know how it is possible and if is possible generaly.

Thanx

Pavel

1 comment

  • 0
    Avatar
    RokuLyndon


    Are you asking about only the playing of the sound? Are you using hdmi output for audio? Or, do you want this sound to come out of some other output?



    Since you can't have the video object and the audio object set to the same output at the same time. You could press the button, temporarily set the video object to analog, audio object to hdmi, play your sound, and then switch the audio object to analog, and video back to hdmi. This assumes you're using hdmi for audio.



    So for example:



    TO play audio feedback:



    video.SetAudioOutput(0) 'sets video to analog

    audio.SetAudioOutput(2) 'sets audio player to hdmi

    audio.PlayFile("button1.mp3")

    sleep(250) 'assumes we're waiting 250 milliseconds for audio to play. But, this can be shorter.



    audio.SetAudioOutput(1) 'sets to usb audio.

    video.SetAudioOutput(2) ' sets to hdmi



    Let me know if this doesn't answer your question.  If audio feedback was coming from a dfiferent output, you could just add the feedback to your videos as another audio stream, or use the steps above without having to swtich audio outputs.
Please sign in to leave a comment.