Thursday, 24 February 2022

Python openAL 3D sound

I just started with python and I am making program for audio manipulation. I am trying to implement 3D sound with openAL in my python application, but I just can get it to work

this is my code for 3D sound:

from openal.loaders import load_wav_file
from openal.audio import *

sink = SoundSink()   
listener = SoundListener()
SoundSink.activate(sink)
listener.position = (0, 0, 0)
listener.velocity = (0, 0, 0)
listener.orientation = (0, 0, -1, 0, 1, 0)
source = SoundSource()
wavsound = load_wav_file("test.wav")
source.queue(wavsound)
#SoundSink.play(source)
sink.play(source)

The code executes, but it doesn't play the sound



from Python openAL 3D sound

1 comment:

  1. Wynn Slots for Android and iOS - Wooricasinos
    A wooricasinos.info free app for slot machines from WRI Holdings Limited that lets you play the aprcasino popular games, such as free video slots, table https://octcasino.com/ games and https://febcasino.com/review/merit-casino/ live casino 토토사이트

    ReplyDelete