I am working on AudioTrack Pcm sound generation. I am trying to control volume for either side of the earpiece in the headphone via setStereoVolume() method i.e only one side of the headphone need to hear. But unable to completely stop the sound in the other side of the headphone.
Asked
Active
Viewed 110 times
0
-
[`setStereoVolume`](https://developer.android.com/reference/android/media/AudioTrack#setStereoVolume(float,%20float)) looks like it’s deprecated. Frustratingly, you may need to use [OpenSL ES](https://developer.android.com/ndk/guides/audio/opensl/) – fdcpp Jan 10 '20 at 07:51
-
@fdcpp thanks. Any other suggestion? – Srinivasan Krishnan Jan 20 '20 at 03:46
-
Start here https://stackoverflow.com/a/18863797/8876321 – fdcpp Jan 20 '20 at 06:44
-
@fdcpp thank you I will try it. I am new to NDK – Srinivasan Krishnan Jan 21 '20 at 07:05