mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-13 17:28:06 +07:00
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:
@ -17,6 +17,12 @@ public class Audio {
|
|||||||
private static final String GLOBAL = "data\\global\\sfx\\";
|
private static final String GLOBAL = "data\\global\\sfx\\";
|
||||||
private static final String LOCAL = "data\\local\\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 AssetManager assets;
|
||||||
private final ObjectMap<Sounds.Entry, AssetDescriptor<?>> descriptors = new ObjectMap<>();
|
private final ObjectMap<Sounds.Entry, AssetDescriptor<?>> descriptors = new ObjectMap<>();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user