Game Development Reference
In-Depth Information
12. Then, we call
audioNode.setDryFilter(filter)
before
audi-
oNode.playInstance()
.
13. When we play it again, we should hear a slightly more varied sound that from
time to time gets more muffled.
Reverb is another parameter we can use for our sounds. But unlike the previous examples,
this should not be randomized each time we play it (or randomized at all!). We can add re-
verb using the following steps:
1. Create a new instance of
Environment
in the
simpleInitApp
method using
one of the premade static ones in the
Environment
class and telling the applic-
ation's
audioRenderer
to use it:
Environment env = Environment.Cavern;
audioRenderer.setEnvironment(env);
2. Running the application again with this environment should give each footstep a
huge echo.