Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » 2D Positional Audio

This thread is locked; no one can reply to it. rss feed Print
2D Positional Audio
tinyBigGAMES
Member #17,458
February 2020
avatar

Any resources, ideas, how to implement this in allegro?

Jarrod Davis
Owner/Lead Developer
tinyBigGAMES LLC

SiegeLord
Member #7,827
October 2006
avatar

It's easy enough to do something with panning and gain, e.g. https://github.com/SiegeLord/Cortex-Terror/blob/master/engine/Sound.d#L122-L152. If you want to do Doppler effects, it might be more tricky, I haven't tried it myself.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Dizzy Egg
Member #10,824
March 2009
avatar

I'd recommend using irrKlang - just my opinion. It's much easier to work with and to do positional audio.

----------------------------------------------------
Please check out my songs:
https://soundcloud.com/dont-rob-the-machina

tinyBigGAMES
Member #17,458
February 2020
avatar

SWEET! Thx guys, I will check them.
Respect!

Jarrod Davis
Owner/Lead Developer
tinyBigGAMES LLC

Go to: