Re: Getting started with coding audiogames in Python?

Pygame only supports stationary sounds, so you can't position them for a stereo effect, but you can adjust the volume and fade out the sound, you can checkout pygames audio documentation [here] and [here].

Pyglet in the last few versions has improved their audio capabilities a bit, using a bit of OpenAL it supports 3D positional and stereo audio, along with pitch and volume control. You can read up more on pyglets audio documentation [here] and [here]. In the past i've modified Pyglets bindings to support more of OpenAL's advanced functions, you could still do this, but it may be more straightforward to use the OpenAL wrapper script in my examples instead.

As mentioned, more advanced features like Reverb or Echo effects, Filters, or HRTF aren't supported in Pygame or Pyglet natively, so if you want to get fancy you'll need to dig deeper into something like OpenAL.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : ultradude306 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ultradude306 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector

Reply via email to