I have a code where I specified two different audio files in two different channels and plays simultaneously, but I need a way to make each file play on only one channel and the other on the other channel. For instance, two audio files playing simultaneously on two seperate channels, Right and Left. Such that an audio plays on right speaker and the other audio plays on left speaker.
I tried with the code below, but the audio is not mapping to any specific channel but are playing on both speakers.
pygame.mixer.init(frequency=44000, size=-16,channels=2, buffer=4096)
#pygame.mixer.set_num_channels(2)
m = pygame.mixer.Sound('tone.wav')
n = pygame.mixer.Sound('sound.wav')
pygame.mixer.Channel(1).play(m,-1)
pygame.mixer.Channel(2).play(n,-1)
Any help is much appreciated.