Skip to content

Stereo audio not affected #18

@Scylla2020

Description

@Scylla2020

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions