Android Question Beeper without initilization

elpic76

Member
Licensed User
Longtime User
Hi folks,
I realized that in an app I am using the beeper but without initialize it.
Despite this it is working properly infact I can hear the sound.
Without initialization, what are the default parameters of the beeper? I mean frequency and duration of the sound.
I would like to know them to implement the same sound in the porting of the app from Android to iOS.
Best regards.
 

stevel05

Expert
Licensed User
Longtime User
It does seem not to fail without initialization, but I am just getting a click and no beep (playing an empty data array). You can see the code in the github repository for the open source libraries : https://github.com/AnywhereSoftware...io/src/anywheresoftware/b4a/audio/Beeper.java.

I am surprised that you are getting a beep sound without initialization, are you sure you haven't initialized it somewhere?

If not, it should be initialized and I suggest that you experiment to get the sound you want.
 
Upvote 0

elpic76

Member
Licensed User
Longtime User
Dear stevel05,

I am surprised that you are getting a beep sound without initialization, are you sure you haven't initialized it somewhere?

you are right I initialized it

B4X:
b.Initialize(200, 2500)

Thank you.
Best regards.
 
Upvote 0
Top