Peekay Active Member Licensed User Longtime User Feb 15, 2022 #1 I am referring to this thread: https://www.b4x.com/android/forum/threads/audio-library-beeper-duration.78712/ This is a long low frequency beep. How can I set it to a short high frequency beep like the Beep on a PC? Thanks PK
I am referring to this thread: https://www.b4x.com/android/forum/threads/audio-library-beeper-duration.78712/ This is a long low frequency beep. How can I set it to a short high frequency beep like the Beep on a PC? Thanks PK
Erel B4X founder Staff member Licensed User Longtime User Feb 15, 2022 #2 Have you tried to decrease the duration and increase the frequency? Upvote 0
klaus Expert Licensed User Longtime User Feb 15, 2022 #3 For high frequencies you need also to increase the sampleRate. Replace 8000 by 44100. Upvote 0
Peekay Active Member Licensed User Longtime User Feb 20, 2022 #4 I still battling to find the right parameters to make a beep like a a PC. Upvote 0
agraham Expert Licensed User Longtime User Feb 20, 2022 #5 I believe that he default beep PC frequency was 440Hz, the default duration was 111mSecs. Using code from your linked thread try B4X: streamer.Initialize("streamer", 11025, False, 16, streamer.VOLUME_MUSIC) ' then Beep (111, 440) You can try reducing the sampling frequency to a minimum of 880Hz but at some stage it will start sounding bad. Upvote 0
I believe that he default beep PC frequency was 440Hz, the default duration was 111mSecs. Using code from your linked thread try B4X: streamer.Initialize("streamer", 11025, False, 16, streamer.VOLUME_MUSIC) ' then Beep (111, 440) You can try reducing the sampling frequency to a minimum of 880Hz but at some stage it will start sounding bad.
Peekay Active Member Licensed User Longtime User Feb 21, 2022 #6 This is a much superior routine: https://www.b4x.com/android/forum/threads/beeperdeluxe.124084/ Thanks so much Guenter! PK Upvote 0
This is a much superior routine: https://www.b4x.com/android/forum/threads/beeperdeluxe.124084/ Thanks so much Guenter! PK