1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-16 04:25:23 +00:00
OpenDiablo2/d2common/d2interface/audio_provider.go

10 lines
309 B
Go
Raw Normal View History

2020-06-28 23:31:10 +00:00
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
2020-06-28 23:31:10 +00:00
type AudioProvider interface {
PlayBGM(song string)
LoadSoundEffect(sfx string) (SoundEffect, error)
SetVolumes(bgmVolume, sfxVolume float64)
}