Adding notes on different audio channel support

Each audio channel should have it's own volume level and support on-the-fly changes
This commit is contained in:
Collin Smith 2019-03-04 22:05:31 -08:00
parent 9386ba4e8f
commit 92c5c2e53f

View File

@ -17,6 +17,12 @@ public class Audio {
private static final String GLOBAL = "data\\global\\sfx\\";
private static final String LOCAL = "data\\local\\sfx\\";
// TODO: Add support for different channels -- will require API change in gdx.diablo.audio
// Audio should maintain a list of all instances and adjust volumes as needed
public enum Channel {
SFX, MUSIC, ENVIRONMENT, SPEECH
}
private final AssetManager assets;
private final ObjectMap<Sounds.Entry, AssetDescriptor<?>> descriptors = new ObjectMap<>();