PyOpenAL
PyOpenAL copied to clipboard
Stereo audio not affected
Im trying to run this simple code, positioning audio to the left but it still sounds the same. What am i doing wrong?I expected to hear the audio in my right ear but it sounds normal.
from openal import *
import time
# open our wave file
source = oalOpen(f)
source.set_position((0,0,0))
x=oalGetListener()
x.set_position=((-5,0,0))
# and start playback
source.play()
check if the file is still playing
while source.get_state() == AL_PLAYING:
# wait until the file is done playing
time.sleep(1)
oalQuit()