PyOpenAL icon indicating copy to clipboard operation
PyOpenAL copied to clipboard

Stereo audio not affected

Open Scylla2020 opened this issue 1 year ago • 1 comments

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()

Scylla2020 avatar Jan 28 '23 09:01 Scylla2020