Related topics on this subject include only mono reproduction, where the left and right frequencies are the same.
My question is: how to generate a stereo tone so that the left channel has a different frequency than the right channel?
I thought about pre-writing .wav files, but writing a lot of .wav files and putting them in the res folder is not a good idea.
I come across classes SoundPooland AudioTrack, but I need a fragment showing the different frequencies of the left and right channels stored as a buffer before playing the tone.
Or are there other ways? Indicate the desired fragment.
source
share