mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-06 19:44:15 -04:00
* 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)
|
|
}
|