If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
beep (windows system tones)
3 posts
• Page 1 of 1
beep (windows system tones)
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
Thanks,
Quentin
- Quentin
- Posts: 37
- Joined: Sat Jul 14, 2012 5:35 am
Re: beep (windows system tones)
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!
//
Sonic Wallpaper
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!
//
Sonic Wallpaper
- Attachments
-
- ButtonSound.zip
- (34.84 KiB) Downloaded 658 times
==============\
Sonic Wallpaper
==============/
Sonic Wallpaper
==============/
-
Sonic Wallpaper - Posts: 1
- Joined: Thu Jan 08, 2015 6:30 am
- Location: San Diego, CA
Re: beep (windows system tones)
Hey, thanks for that, I will give it a try itlooks to be just what I wanted.
Quentin
Quentin
- Quentin
- Posts: 37
- Joined: Sat Jul 14, 2012 5:35 am
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 96 guests