merlin2049er Well-Known Member Licensed User Longtime User Jul 9, 2013 #1 Hi, are they're any built-in audio blips I can add to my button presses? Or do I have to load the .wav file, etc...
Hi, are they're any built-in audio blips I can add to my button presses? Or do I have to load the .wav file, etc...
Erel B4X founder Staff member Licensed User Longtime User Jul 10, 2013 #2 You can use the Beeper object from the Audio library. Upvote 0
bgsoft Well-Known Member Licensed User Longtime User Jul 10, 2013 #3 I put a quick example: B4X: Sub Globals Dim Button1 As Button Dim Beeper1 As Beeper ..... ..... Sub Activity_Create(FirstTime As Boolean) Beeper1.Initialize (200,2500) ' milliseconds , hertz ...... ...... ...... Sub Button1_Click Beeper1.beep ...... ..... regards Jesus Upvote 0
I put a quick example: B4X: Sub Globals Dim Button1 As Button Dim Beeper1 As Beeper ..... ..... Sub Activity_Create(FirstTime As Boolean) Beeper1.Initialize (200,2500) ' milliseconds , hertz ...... ...... ...... Sub Button1_Click Beeper1.beep ...... ..... regards Jesus
Erel B4X founder Staff member Licensed User Longtime User Jul 10, 2013 #4 Note that it is better to declare it as a process_global variable and then only initialize it when FirstTime is true. Upvote 0
Note that it is better to declare it as a process_global variable and then only initialize it when FirstTime is true.
merlin2049er Well-Known Member Licensed User Longtime User Jul 10, 2013 #5 Actually I found a soundfx library, and included that. Very neat, just initialize, and then use 1 of 8 click noises. Upvote 0
Actually I found a soundfx library, and included that. Very neat, just initialize, and then use 1 of 8 click noises.