beep (windows system tones)

For general discussion related FlowStone
Post Reply
Quentin
Posts: 37
Joined: Sat Jul 14, 2012 5:35 am

beep (windows system tones)

Post by Quentin »

Hi, this is an ironic question to put to a forum that mostly does sound processing. I am using a touch screen and want a positive audio feedback for button presses. I notice that the msgbox module uses the windows system tone. I wonder if there is a simple way to leverage a preexisting system tone to get a click. Or if not, what is the cleanest way to used the audio toolbox to achieve this very basic goal? Perhaps there is a analogous example out there that I have not found.
Thanks,
Quentin
User avatar
Sonic Wallpaper
Posts: 1
Joined: Thu Jan 08, 2015 6:30 am
Location: San Diego, CA

Re: beep (windows system tones)

Post by Sonic Wallpaper »

Hi - please see attached for a button that triggers a button sound. I took the standard button, and within the Ruby object, I added:

playSound @soundPath

in the mouseLDown method

and added an input for soundpath, so you can set the wav file outside of the button.

The path is relative, so the wav files is stored in the same location as the schematic. According the the docs - if you add a sub directory like "sounds" - the path would be:

sounds\button.wav

=========

I don't know if this is the best or right way, but it works :) I hope this helps.

FIRST POST! :ugeek:

//

Sonic Wallpaper
Attachments
ButtonSound.zip
(34.84 KiB) Downloaded 702 times
==============\
Sonic Wallpaper
==============/
Quentin
Posts: 37
Joined: Sat Jul 14, 2012 5:35 am

Re: beep (windows system tones)

Post by Quentin »

Hey, thanks for that, I will give it a try itlooks to be just what I wanted.
Quentin
Post Reply