Open comeonlby opened 1 year ago
From what I can tell, this code tries to get mixed reflections from an IPLReflectionMixer
object, but doesn't send audio to it from iplReflectionEffectApply
. Try one of the following:
Mixer
when calling iplReflectionEffectApply
: iplReflectionEffectApply(Reffect, &Rparams, &inBuffer, &outBuffer, &Mixer);
, oriplReflectionMixerApply
. This will directly render the output of the IPLReflectionEffect
.Let me know if neither of these resolves the issue.
From what I can tell, this code tries to get mixed reflections from an
IPLReflectionMixer
object, but doesn't send audio to it fromiplReflectionEffectApply
. Try one of the following:
- Pass
Mixer
when callingiplReflectionEffectApply
:iplReflectionEffectApply(Reffect, &Rparams, &inBuffer, &outBuffer, &Mixer);
, or- Comment out the call to
iplReflectionMixerApply
. This will directly render the output of theIPLReflectionEffect
.Let me know if neither of these resolves the issue.
Thank you for your patient answer. I tried both of the methods you provided, but the final output is still silent.I suspect there is a problem with the generation of IPLReflectionEffectIR, but I don't have any log prompts.
I took a closer look at the code, and it looks like the impulse response is silent because the listener is at one of the vertices of the geometry (0, 0, 0). Try moving the listener slightly away from the geometry (e.g. by adding an offset in the z-axis). That, in addition to one of the fixes I suggested above, should hopefully resolve the issue. Let us know if it doesn't.
I took a closer look at the code, and it looks like the impulse response is silent because the listener is at one of the vertices of the geometry (0, 0, 0). Try moving the listener slightly away from the geometry (e.g. by adding an offset in the z-axis). That, in addition to one of the fixes I suggested above, should hopefully resolve the issue. Let us know if it doesn't.
You're right. I tried to move the listener slightly away from the geometry and it worked. Thank you again for your patient answer, which is of great help to me. Best wishes.
According to the documentation, ReflectionEffect is called,but it cannot run correctly and the output result is silent. (Tested with Steam Audio 4.1.3, MacOS 10.15.7 Intel, Xcode 11.3.1) Is this a bug or am I using the API incorrectly?
Click to expand
``` #include