tags:

views:

210

answers:

2

I am in need of positional audio for my emulator RetroCopy (http://www.retrocopy.com) . I am currently using DirectSound 3D however it has many issues when I am in the 3D world of my emulator. Instead of trying to hardcode fixes for a single platform I thought it would be better to use software positioning of my buffers that I output to a simple stereo output. Thoughts?

A: 

You mean like OpenAL?

Ignacio Vazquez-Abrams
No, I would rather something that I don't need to dynamically link with, ie a library that is small that takes sound buffers as inputs and outputs a 3d stereo buffer. ie samples in, position_of_samples in, viewer_position in, int16 3dsamples out
RetroRalph
A: 

How important is the Up-Down component?
I produced an audio toolkit that degraded to simple L/R panning on platforms where the HRTF was not available. For many games, where most of the action tends to take place on roughly the same plane, this is more than sufficient to provide the right positional cues to the player.

This is simple to implement: Use the angle between viewer and source as an input to a constant-power panning algorithm.

AShelly
This may be a good compromise. The up/down component isn't that important in the scheme of things. What about making the sound appear as it is coming from behind? Likely a bit harder.
RetroRalph