1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-03 01:37:18 -04:00
OpenDiablo2/d2common/d2interface/audio_provider.go

10 lines
324 B
Go
Raw Normal View History

2020-06-28 19:31:10 -04: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 19:31:10 -04:00
type AudioProvider interface {
PlayBGM(song string)
LoadSound(sfx string, loop bool, bgm bool) (SoundEffect, error)
2020-06-28 19:31:10 -04:00
SetVolumes(bgmVolume, sfxVolume float64)
}