T Timmay Member Licensed User Longtime User Jan 22, 2012 #1 Hi, I am a beginner. I am trying to make an app which records analog input data over time and then sounds an audio alert depending on the analog input value over time. I looked at the 'beep' code in the audio libraries. What is the complete code for an app which makes the phone beep? Thanks
Hi, I am a beginner. I am trying to make an app which records analog input data over time and then sounds an audio alert depending on the analog input value over time. I looked at the 'beep' code in the audio libraries. What is the complete code for an app which makes the phone beep? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jan 22, 2012 #2 Click on the activity to make a sound: Code: Copy Sub Process_Globals Dim Beeper1 As Beeper End Sub Sub Globals End Sub Sub Activity_Create(FirstTime As Boolean) If FirstTime Then Beeper1.Initialize(300, 500) End If End Sub Sub Activity_Click Beeper1.Beep End Sub Upvote 0
Click on the activity to make a sound: Code: Copy Sub Process_Globals Dim Beeper1 As Beeper End Sub Sub Globals End Sub Sub Activity_Create(FirstTime As Boolean) If FirstTime Then Beeper1.Initialize(300, 500) End If End Sub Sub Activity_Click Beeper1.Beep End Sub