Bug? mediaPlayer.setVolume docs have left/right parameters reversed

Dave O

Well-Known Member
Licensed User
Longtime User
Just noticed that, when using MediaPlayer.SetVolume, the left sound came out the right speaker, and vice versa.

I suspect that the B4A docs are wrong, because they say the parameters are right/left, but the Android docs say left/right.

I didn't notice this on my phone and tablet, because they don't have stereo speakers. But on an emulator on my laptop, the sound is plainly reversed.

It would be great if someone could confirm this on different hardware.

Thanks!
 

stevel05

Expert
Licensed User
Longtime User
Have you tried it with headphones on a device?
 

Dave O

Well-Known Member
Licensed User
Longtime User
Have you tried it with headphones on a device?

Ah, completely forgot to do that, because the game will never be used with headphones, but good way to check stereo.

Confirmed by testing on a Samsung phone and tablet - the Android docs are correct (it's left, then right), so @Erel, the B4A docs need a minor revision.

Cheers!
 
Top