1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-16 04:25:23 +00:00
OpenDiablo2/d2common/d2interface/sound_effect.go
Ziemas c840e140f7
Stereo panning for sound effects (#654)
Randomly pan event sounds

Adapted from ebiten example
2020-07-30 21:50:27 -04:00

11 lines
207 B
Go

package d2interface
// SoundEffect is something that that the AudioProvider can Play or Stop
type SoundEffect interface {
Play()
Stop()
SetPan(pan float64)
IsPlaying() bool
SetVolume(volume float64)
}