Documentation ¶
Index ¶
- Variables
- func AdvanceFrame()
- func Destroy()
- func EffectChannelVolume(cid ChanId) (v float32, ok bool)
- func EffectVolume() float32
- func Init() (err error)
- func MusicVolume() float32
- func NewVorbisDecoder(name string) (sine.Decoder, error)
- func NewWavDecoder(name string) (sine.Decoder, error)
- func PauseEffect(cid ChanId)
- func PauseMusic()
- func ResumeEffect(cid ChanId)
- func ResumeMusic()
- func SetEffectChannelVolume(cid ChanId, v float32)
- func SetEffectVolume(v float32)
- func SetMusicVolume(v float32)
- func StopEffect(cid ChanId)
- func StopMusic()
- type ChanId
- type MusicPlayer
- type SourceComp
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDecoderFactory = &decoderFactory{}
default Audio-File-Decoder
Functions ¶
func AdvanceFrame ¶
func AdvanceFrame()
func EffectChannelVolume ¶
func MusicVolume ¶
func MusicVolume() float32
func PauseEffect ¶
func PauseEffect(cid ChanId)
func PauseMusic ¶
func PauseMusic()
func ResumeEffect ¶
func ResumeEffect(cid ChanId)
func ResumeMusic ¶
func ResumeMusic()
func SetEffectChannelVolume ¶
func SetEffectVolume ¶
func SetEffectVolume(v float32)
func SetMusicVolume ¶
func SetMusicVolume(v float32)
func StopEffect ¶
func StopEffect(cid ChanId)
Types ¶
type MusicPlayer ¶
type MusicPlayer struct {
*sine.StreamPlayer
}
func PlayMusic ¶
func PlayMusic(id uint16) (sp MusicPlayer, ook bool)
Click to show internal directories.
Click to hide internal directories.