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)
|
|
}
|