0
0

I’m working on an audio plugin for a 3d graphics engine, and I want the user to be able to plug in whatever audio library they want. Right now I’ve added fmod and OpenAL implementations and due to their similar interfaces, it has been very painless.

The only thing I’m having trouble with is the SetDistanceFactor. For OpenAL (AL_REFERENCE_DISTANCE), this is distance after which the audio source volume would drop by half, but for fmod, it sets the unit of measurement you are using. Is there any way I can relate the two? How does fmod determine at what distance the volume on a channel drops by half? Thanks in advance,

Amit

  • You must to post comments
0
0

From the OpenAL docs:

AL_REFERENCE_DISTANCE the distance under which the volume for the source would normally drop by half (before being influenced by rolloff factor or AL_MAX_DISTANCE)

I guess if there is no correlation between that and fmod’s SetDistanceFactor, I’ll just leave it out from the plugin. Thanks,

Amit

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.