Robert Valentino Well-Known Member Licensed User Longtime User Dec 31, 2013 #1 Has anyone come up with Beeper values for events. Something for file saved ok. Error data is invalid. Something has happened in background? Thanks in advanced BobVal
Has anyone come up with Beeper values for events. Something for file saved ok. Error data is invalid. Something has happened in background? Thanks in advanced BobVal
mangojack Expert Licensed User Longtime User Jan 1, 2014 #2 I just create or find small mp3's and play them using the media player library ... Code: Copy Dim MP As MediaPlayer 'play sound MP.Initialize MP.Load(File.DirAssets, "slide.mp3") MP.Play unsure if there is another way Cheers mj Upvote 0
I just create or find small mp3's and play them using the media player library ... Code: Copy Dim MP As MediaPlayer 'play sound MP.Initialize MP.Load(File.DirAssets, "slide.mp3") MP.Play unsure if there is another way Cheers mj
Robert Valentino Well-Known Member Licensed User Longtime User Jan 1, 2014 #3 was hoping to avoid all these little files and just play some tone / feq thanks Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 1, 2014 #4 You can use the Beeper object from the Audio library. Upvote 0
Robert Valentino Well-Known Member Licensed User Longtime User Jan 1, 2014 #5 YEs I understand that and that is what I have been using. I was just wondering if anyone had any good values for the Duration / Frequency that made nice sounding tones. I have been using 500, 600 for an Error Alert but need something more pleasant sounding for an "OK, I got that" but haven't been able to come up with one. Guess I will just write a program that I can type in a D/F and hear it and move on to the next, not to mention that I a lot on the deaf side so most things sound a like to me Upvote 0
YEs I understand that and that is what I have been using. I was just wondering if anyone had any good values for the Duration / Frequency that made nice sounding tones. I have been using 500, 600 for an Error Alert but need something more pleasant sounding for an "OK, I got that" but haven't been able to come up with one. Guess I will just write a program that I can type in a D/F and hear it and move on to the next, not to mention that I a lot on the deaf side so most things sound a like to me
Erel B4X founder Staff member Licensed User Longtime User Jan 1, 2014 #6 I remember visiting a site that allowed you to play with these values and here the result. Can't find it right now. It should be simple to create such an app. With that said it might be easier to just find a few audio files and use them instead (probably with SoundPool). Upvote 0
I remember visiting a site that allowed you to play with these values and here the result. Can't find it right now. It should be simple to create such an app. With that said it might be easier to just find a few audio files and use them instead (probably with SoundPool).
Robert Valentino Well-Known Member Licensed User Longtime User Jan 2, 2014 #7 Well, I just found a problem with using the Alert beeper. When I MUTE my Samsung Galaxy Tab-3 and do something that causes me to do an Alert the sound still plays. Do I need to check if the device is muted? I would have thought the .Beep would do this and not sound. So maybe MP3's are the way to go (just wonder about the overhead for a little sound [Files, loading, playing] Upvote 0
Well, I just found a problem with using the Alert beeper. When I MUTE my Samsung Galaxy Tab-3 and do something that causes me to do an Alert the sound still plays. Do I need to check if the device is muted? I would have thought the .Beep would do this and not sound. So maybe MP3's are the way to go (just wonder about the overhead for a little sound [Files, loading, playing]
Erel B4X founder Staff member Licensed User Longtime User Jan 2, 2014 #8 I guess that you haven't muted the correct channel. You can use Beeper.Initialize2 to set the volume channel. The default channel is the MUSIC channel. The overhead of loading a few short audio files is insignificant. Upvote 0
I guess that you haven't muted the correct channel. You can use Beeper.Initialize2 to set the volume channel. The default channel is the MUSIC channel. The overhead of loading a few short audio files is insignificant.
Robert Valentino Well-Known Member Licensed User Longtime User Jan 2, 2014 #9 I didn't mute in code, I muted using the device settings which is why I was surprised it did not mute because every other sound on the device is Upvote 0
I didn't mute in code, I muted using the device settings which is why I was surprised it did not mute because every other sound on the device is
Erel B4X founder Staff member Licensed User Longtime User Jan 2, 2014 #10 Try to mute the volume channel with the phone library to test it. Upvote 0
Robert Valentino Well-Known Member Licensed User Longtime User Jan 5, 2014 #11 I think you are missing what I am saying. I am not trying to mute anything in my program. What I did is in the device go into setup and mute the sounds. Now NOTHING on my device makes any noise. But when I run my program the beep program is still causing the beep sounds. Now if I have turned off the sounds using the device settings how is this possible? I will add an option to my program to not make any noise but shouldn't the device settings over-ride anything I am doing? Upvote 0
I think you are missing what I am saying. I am not trying to mute anything in my program. What I did is in the device go into setup and mute the sounds. Now NOTHING on my device makes any noise. But when I run my program the beep program is still causing the beep sounds. Now if I have turned off the sounds using the device settings how is this possible? I will add an option to my program to not make any noise but shouldn't the device settings over-ride anything I am doing?
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2014 #12 I'm afraid that you didn't understand me. There are 7 different volume channels in Android. When you "mute" the sound in the settings menu, it is not clear which channels are actually muted. This is why I told you to test it by muting the MUSIC channel programmatically. Anyway, if you like to use the RING channel you can use this code: Code: Copy b.Initialize2(1000, 1000, b.VOLUME_RING) This way the sound will be muted when the "phone" is muted. Upvote 0
I'm afraid that you didn't understand me. There are 7 different volume channels in Android. When you "mute" the sound in the settings menu, it is not clear which channels are actually muted. This is why I told you to test it by muting the MUSIC channel programmatically. Anyway, if you like to use the RING channel you can use this code: Code: Copy b.Initialize2(1000, 1000, b.VOLUME_RING) This way the sound will be muted when the "phone" is muted.
Robert Valentino Well-Known Member Licensed User Longtime User Jan 6, 2014 #13 Yes that got it. I used the VOLUME_NOTIFICATION setting and that works fine now. Sorry for the misunderstanding. Upvote 0
Yes that got it. I used the VOLUME_NOTIFICATION setting and that works fine now. Sorry for the misunderstanding.