Hello,
I have downloaded the latest BASS and noticed that, from now on, it was using WASAPI instead of DirectX by default on windows 7 and up.
I have two questions regarding this, and others questions about 3D.
1. For a game, is it better to still use DirectX as for previous BASS versions ?
In fact, what are the advantages of using WASAPI instead of DirectX ?
2. When using WASAPI, does the distinction between sample and stream channels still apply as before ? i.e. samples are cheaper in CPU but no effects/DSP can be set on them,
or they are now threated identically when using WASAPI ?
What let me perhaps think that the distinction is gone with WASAPI is the fact that I can now set a general DSP/effect that applies to everything, while it was totally impossible with DirectX (because BASS didn't handle the final mix itself).
3. Given a sample loaded with the flag BASS_SAMPLE_3D, is it possible for a particular HCHANNEL instance of that sample to turn off 3D and be able to set BASS_ATTRIB_PAN ?
Is it the purpose of BASS_3DMODE_OFF ?
4: Is there somewhere a better explanations of the parameters for BASS_ChannelSet3DAttributes ? I'm not sure to understand everything correctly for the parameters min and max.
What happens if the source is too far from the listener ? Is the channel automatically muted, paused, stopped, or something ? Or do I have to handle this myself ?
I was expecting that when the listener is beyond max distance, it was silence (or almost), i.e. I don't hear the channel, but in fact not necessary.
If I decide to manually stop channels as soon as the listener goes outside max distance (assuming no at the previous question), the cut is clear.
So, question: how the volume is calculated according to the distance and these parameters ? Which values am I supposed to set so to have smooth and natural volume changes as I'm moving in the 3D world ?
For a numerical example, let's say that I have a looping sample of a noisy machine that can be heard within a 10 meters range, i.e. I should start hearing it at 10 meters when approaching it, and stop hearing it at 10 meters when going away from it.
Thank you for your answers.