2020-06-28 23:31:10 +00:00
|
|
|
package d2interface
|
|
|
|
|
2020-06-29 04:41:58 +00:00
|
|
|
// 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)
|
2020-07-30 20:17:26 +00:00
|
|
|
LoadSound(sfx string, loop bool, bgm bool) (SoundEffect, error)
|
2020-06-28 23:31:10 +00:00
|
|
|
SetVolumes(bgmVolume, sfxVolume float64)
|
|
|
|
}
|