A anaylor01 Well-Known Member Licensed User Longtime User May 25, 2017 #1 I am trying to set the speaker volume to max. So I set the Media volume down and run the app. The Media volume doesn't change when I open the volume settings. It almost sounds like it is at max but shouldn't the Media volume level be changed to max? p.SetVolume(p.VOLUME_MUSIC, p.GetMaxVolume(p.VOLUME_MUSIC), False) I have this in the Manifest: AddPermission(android.permission.MODIFY_AUDIO_SETTINGS) Last edited: May 25, 2017
I am trying to set the speaker volume to max. So I set the Media volume down and run the app. The Media volume doesn't change when I open the volume settings. It almost sounds like it is at max but shouldn't the Media volume level be changed to max? p.SetVolume(p.VOLUME_MUSIC, p.GetMaxVolume(p.VOLUME_MUSIC), False) I have this in the Manifest: AddPermission(android.permission.MODIFY_AUDIO_SETTINGS)
R ronell Well-Known Member Licensed User Longtime User May 25, 2017 #2 its hard to guess, upload project as zip then we can test it Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User May 25, 2017 #3 Let me ask you this. If my app was ready to go to the market could someone take it as their own? Not saying anyone would but is that possible? Upvote 0
Let me ask you this. If my app was ready to go to the market could someone take it as their own? Not saying anyone would but is that possible?
R ronell Well-Known Member Licensed User Longtime User May 25, 2017 #4 anaylor01 said: Let me ask you this. If my app was ready to go to the market could someone take it as their own? Not saying anyone would but is that possible? Click to expand... you didnt mention it in your first post , but let me tell you this.. im(or we are) not going to steal your code and make money out of it anaylor01 said: It almost sounds like it is at max but shouldn't the Media volume level be changed to max? Click to expand... maybe when you open the app the volume is set to max then when you go to setting the app goes to resume sub and set back the volume to 0 Upvote 0
anaylor01 said: Let me ask you this. If my app was ready to go to the market could someone take it as their own? Not saying anyone would but is that possible? Click to expand... you didnt mention it in your first post , but let me tell you this.. im(or we are) not going to steal your code and make money out of it anaylor01 said: It almost sounds like it is at max but shouldn't the Media volume level be changed to max? Click to expand... maybe when you open the app the volume is set to max then when you go to setting the app goes to resume sub and set back the volume to 0
A anaylor01 Well-Known Member Licensed User Longtime User May 25, 2017 #5 I wasn't saying you were. I was just asking if it were possible. Upvote 0
R ronell Well-Known Member Licensed User Longtime User May 25, 2017 #6 anaylor01 said: I wasn't saying you were. I was just asking if it were possible. Click to expand... if you cant post the whole project then just let us take a look at the relevant codes Upvote 0
anaylor01 said: I wasn't saying you were. I was just asking if it were possible. Click to expand... if you cant post the whole project then just let us take a look at the relevant codes
A anaylor01 Well-Known Member Licensed User Longtime User May 25, 2017 #7 The code I posted is the relevant code. There isn't much to it. When I had that line of code in the activity it seemed like that if the volume level was low that after the code ran the volume level would be at the max after. When it runs in the service it sounds the same but when you go to the volume level settings it is still low not at the max. So maybe it is playing the sound at the max level but not setting the meter to the max. Upvote 0
The code I posted is the relevant code. There isn't much to it. When I had that line of code in the activity it seemed like that if the volume level was low that after the code ran the volume level would be at the max after. When it runs in the service it sounds the same but when you go to the volume level settings it is still low not at the max. So maybe it is playing the sound at the max level but not setting the meter to the max.
Erel B4X founder Staff member Licensed User Longtime User May 25, 2017 #8 You don't need to add this permission. Your code is correct. It is possible that the default audio channel is different. You can force it to be the music channel with this code: https://www.b4x.com/android/forum/t...snt-work-in-all-activities.78180/#post-495418 Upvote 0
You don't need to add this permission. Your code is correct. It is possible that the default audio channel is different. You can force it to be the music channel with this code: https://www.b4x.com/android/forum/t...snt-work-in-all-activities.78180/#post-495418
A anaylor01 Well-Known Member Licensed User Longtime User May 26, 2017 #9 Thanks Erel. So I am using this code to play the audio. sounds.Play(bounceId, 1, 1, 1, 0, 2) How do you determine or know which channel the audio uses? VOLUME_ALARM VOLUME_MUSIC VOLUME_NOTIFICATION VOLUME_RING VOLUME_SYSTEM VOLUME_VOICECALL Upvote 0
Thanks Erel. So I am using this code to play the audio. sounds.Play(bounceId, 1, 1, 1, 0, 2) How do you determine or know which channel the audio uses? VOLUME_ALARM VOLUME_MUSIC VOLUME_NOTIFICATION VOLUME_RING VOLUME_SYSTEM VOLUME_VOICECALL
Erel B4X founder Staff member Licensed User Longtime User May 28, 2017 #10 SoundPool uses the VOLUME_MUSIC channel. Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User May 29, 2017 #11 Thanks Erel. So VOUME_MUSC = SoundPool What do the others use? VOLUME_ALARM= VOLUME_NOTIFICATION= VOLUME_RING= VOLUME_SYSTEM= VOLUME_VOICECALL= Upvote 0
Thanks Erel. So VOUME_MUSC = SoundPool What do the others use? VOLUME_ALARM= VOLUME_NOTIFICATION= VOLUME_RING= VOLUME_SYSTEM= VOLUME_VOICECALL=
A anaylor01 Well-Known Member Licensed User Longtime User Jun 5, 2017 #12 Am I missing something? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 5, 2017 #13 What do you mean with others? Make your question more specific. Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User Jun 5, 2017 #14 What I am asking is if VOUME_MUSC = SoundPool do the others equal something else? Like VOLUME_ALARM = SoundAlarm? Upvote 0
What I am asking is if VOUME_MUSC = SoundPool do the others equal something else? Like VOLUME_ALARM = SoundAlarm?
Erel B4X founder Staff member Licensed User Longtime User Jun 6, 2017 #15 The system alarm will use VOLUME_ALARM. MediaPlayer uses VOLUME_MUSIC by default. Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User Jun 8, 2017 #16 So if you are on the phone with someone is there anything that will play sound that the person on the other line can hear? Upvote 0
So if you are on the phone with someone is there anything that will play sound that the person on the other line can hear?
Erel B4X founder Staff member Licensed User Longtime User Jun 8, 2017 #17 Please start a new thread for a new question. Upvote 0