mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-22 12:38:12 +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:
parent
9386ba4e8f
commit
92c5c2e53f
@ -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<>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user