Click sound when a button is pressed?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Click sound when a button is pressed?
Dear all,
Please excuse my (formidable) ignorance, but is there a simple way of producing a subtle "click" sound when a button is pressed. Having read up on it, I suppose I could just play a WAV, but that might incur too much overhead. It's for Android by the way, or should I say "mobile".
Thanks!!!
Mich.
Please excuse my (formidable) ignorance, but is there a simple way of producing a subtle "click" sound when a button is pressed. Having read up on it, I suppose I could just play a WAV, but that might incur too much overhead. It's for Android by the way, or should I say "mobile".
Thanks!!!
Mich.
Michel J.L. van der Kleij
Coding to help stray animals in the Philippines
Albert Foundation - http://albert.tukcedo.nl
Aklan Animal Rescue & Rehabilitation Center - http://aarrc.tukcedo.nl
Coding to help stray animals in the Philippines
Albert Foundation - http://albert.tukcedo.nl
Aklan Animal Rescue & Rehabilitation Center - http://aarrc.tukcedo.nl
-
- VIP Livecode Opensource Backer
- Posts: 9663
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Click sound when a button is pressed?
Hi.
Can't you record a "click" as a small audio clip and play that?
Craig Newman
Can't you record a "click" as a small audio clip and play that?
Craig Newman
Re: Click sound when a button is pressed?
I think that will be the only solution to his problem!dunbarx wrote:Hi.
Can't you record a "click" as a small audio clip and play that?
Craig Newman
Re: Click sound when a button is pressed?
Hmmmm yeah that was my original idea too, but any ideas on the overhead guys?
Michel J.L. van der Kleij
Coding to help stray animals in the Philippines
Albert Foundation - http://albert.tukcedo.nl
Aklan Animal Rescue & Rehabilitation Center - http://aarrc.tukcedo.nl
Coding to help stray animals in the Philippines
Albert Foundation - http://albert.tukcedo.nl
Aklan Animal Rescue & Rehabilitation Center - http://aarrc.tukcedo.nl
Re: Click sound when a button is pressed?
Mijnheer,
do you want to hear a click sound or not?
If yes, then you will need to live with some KB overhead!
Best
Klaus
do you want to hear a click sound or not?
If yes, then you will need to live with some KB overhead!
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Click sound when a button is pressed?
For short audio that doesn't need high fidelity I often import an audio clip into the stack. It keeps the sound together with the stack so you don't need a separate file on disk, and it sounds fine for things like clicks and beeps. The best format is aiff for something like this. There is almost no overhead when an audio clip is part of the stack and playback will be near-instant. If you do decide to use an audio file on disk instead, the overhead is minor but does take a little longer to start because the file has to be loaded into RAM.
Try it both ways and see which one works best for you.
Try it both ways and see which one works best for you.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Click sound when a button is pressed?
Hi Jaqueline,
Best
Klaus
which eliminates the option of imported audio clipsTukcedo wrote:... It's for Android by the way, or should I say "mobile".
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Click sound when a button is pressed?
Oops, you're right. Files it is then. I missed that.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Click sound when a button is pressed?
Hmmm so why wouldn't an imported sound file not play on Android? It doesn't (I checked that) and the imported file doesn't even show anywhere. How can I remove it since I can't use it anyway?
I included (copy) an mp3 file and that works quite well with the file reference. Now hunting down a nice "subtle" click
I included (copy) an mp3 file and that works quite well with the file reference. Now hunting down a nice "subtle" click
Michel J.L. van der Kleij
Coding to help stray animals in the Philippines
Albert Foundation - http://albert.tukcedo.nl
Aklan Animal Rescue & Rehabilitation Center - http://aarrc.tukcedo.nl
Coding to help stray animals in the Philippines
Albert Foundation - http://albert.tukcedo.nl
Aklan Animal Rescue & Rehabilitation Center - http://aarrc.tukcedo.nl
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Click sound when a button is pressed?
In LC preferences -> Application Browser, turn on the checkbox that shows audio files. Open the app browser, click on your stack in the left-hand list, and the imported audio files will appear. Right-click and choose Delete to remove them.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Click sound when a button is pressed?
Thx Jacque, that tickbox was already checked and now audio file to be seen. Perhaps it just didn't accept the sound file at all.
Michel J.L. van der Kleij
Coding to help stray animals in the Philippines
Albert Foundation - http://albert.tukcedo.nl
Aklan Animal Rescue & Rehabilitation Center - http://aarrc.tukcedo.nl
Coding to help stray animals in the Philippines
Albert Foundation - http://albert.tukcedo.nl
Aklan Animal Rescue & Rehabilitation Center - http://aarrc.tukcedo.nl