OpenDiablo2/d2common/d2interface/audio_provider.go

10 lines
324 B
Go
Raw Permalink 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)
LoadSound(sfx string, loop bool, bgm bool) (SoundEffect, error)
2020-06-28 23:31:10 +00:00
SetVolumes(bgmVolume, sfxVolume float64)
}