mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-02 17:27:23 -04:00
29ea71489d
* Working sound engine and sound environments * Clean up sounds.txt loader * Make global volume settings apply properly Als shuffle some stuff around * Reset sound engine on game unload
10 lines
324 B
Go
10 lines
324 B
Go
package d2interface
|
|
|
|
// AudioProvider is something that can play music, load audio files managed
|
|
// by the asset manager, and set the game engine's volume levels
|
|
type AudioProvider interface {
|
|
PlayBGM(song string)
|
|
LoadSound(sfx string, loop bool, bgm bool) (SoundEffect, error)
|
|
SetVolumes(bgmVolume, sfxVolume float64)
|
|
}
|