Documentation ¶
Index ¶
- Constants
- func AllocateChannels(numchans int) bool
- func ChannelFinished(channelFinished func(int))
- func CloseAudio()
- func EachSoundFont(function func(string) int) int
- func ExpireChannel(channel, ticks int) bool
- func FadeOutChannel(which, ms int) bool
- func FadeOutGroup(tag, ms int) bool
- func FadeOutMusic(ms int) bool
- func GetChunkDecoder(index int) string
- func GetMusicDecoder(index int) string
- func GetNumChunkDecoders() int
- func GetNumMusicDecoders() int
- func GetSoundFonts() string
- func GetSynchroValue() int
- func GroupAvailable(tag int) int
- func GroupChannel(which, tag int) bool
- func GroupChannels(from, to, tag int) bool
- func GroupCount(tag int) int
- func GroupNewer(tag int) int
- func GroupOldest(tag int) int
- func HaltChannel(channel int) bool
- func HaltGroup(tag int) bool
- func HaltMusic() bool
- func HookMusic(music_func func([]uint8))
- func HookMusicFinished(musicFinished func())
- func MusicPlaying() bool
- func OpenAudio(frequency int, format uint16, channels, chunksize int) bool
- func Pause(channel int)
- func PauseMusic()
- func Paused(channel int) bool
- func PausedMusic() bool
- func Playing(channel int) bool
- func QuerySpec(frequency *int, format *uint16, channels *int) bool
- func RegisterEffect(channel int, f EffectFuncT, d EffectDoneT) int
- func ReserveChannels(num int) int
- func Resume(channel int)
- func ResumeMusic()
- func RewindMusic()
- func SetDistance(channel int, distance uint8) bool
- func SetMusicCMD(command string) bool
- func SetMusicPosition(position int64) bool
- func SetMusicVolume(volume int) int
- func SetPanning(channel int, left, right uint8) bool
- func SetPosition(channel int, angle int16, distance uint8) bool
- func SetPostMix(mix_func func([]uint8))
- func SetReverseStereo(channel int, flip int) bool
- func SetSoundFonts(paths string) bool
- func SetSynchroValue(value int) bool
- func SetVolume(channel, volume int) int
- func UnregisterAllEffects(channel int) int
- type Chunk
- func (chunk *Chunk) FadeIn(channel, loops, ms, ticks int) bool
- func (chunk *Chunk) FadeInTimed(channel, loops, ms, ticks int) bool
- func (chunk *Chunk) Free()
- func (chunk *Chunk) PlayChannel(channel, loops int) bool
- func (chunk *Chunk) PlayTimed(channel, loops, ticks int) bool
- func (chunk *Chunk) SetVolume(volume int) int
- type EffectDoneT
- type EffectFuncT
- type Fading
- type Music
- type MusicType
Constants ¶
View Source
const ( NO_FADING = iota FADING_OUT FADING_IN )
View Source
const ( NONE = iota CMD WAV MOD MID OGG MP3 MP3_MAD FLAC MODPLUG )
View Source
const CHANNEL_POST = -2
View Source
const DEFAULT_CHANNELS = 2
View Source
const DEFAULT_CHUNKSIZE = 2
View Source
const DEFAULT_FORMAT = sdl.AUDIO_S16LSB
View Source
const DEFAULT_FREQUENCY = 22050
View Source
const EFFECTSMAXSPEED = "MIX_EFFECTSMAXSPEED"
View Source
const MAX_VOLUME = 128
Variables ¶
This section is empty.
Functions ¶
func AllocateChannels ¶
func ChannelFinished ¶
func ChannelFinished(channelFinished func(int))
func CloseAudio ¶
func CloseAudio()
func EachSoundFont ¶
func ExpireChannel ¶
func FadeOutChannel ¶
func FadeOutGroup ¶
func FadeOutMusic ¶
func GetChunkDecoder ¶
func GetMusicDecoder ¶
func GetNumChunkDecoders ¶
func GetNumChunkDecoders() int
func GetNumMusicDecoders ¶
func GetNumMusicDecoders() int
func GetSoundFonts ¶
func GetSoundFonts() string
func GetSynchroValue ¶
func GetSynchroValue() int
func GroupAvailable ¶
func GroupChannel ¶
func GroupChannels ¶
func GroupCount ¶
func GroupNewer ¶
func GroupOldest ¶
func HaltChannel ¶
func HookMusicFinished ¶
func HookMusicFinished(musicFinished func())
func MusicPlaying ¶
func MusicPlaying() bool
func PauseMusic ¶
func PauseMusic()
func PausedMusic ¶
func PausedMusic() bool
func RegisterEffect ¶
func RegisterEffect(channel int, f EffectFuncT, d EffectDoneT) int
func ReserveChannels ¶
func ResumeMusic ¶
func ResumeMusic()
func RewindMusic ¶
func RewindMusic()
func SetDistance ¶
func SetMusicCMD ¶
func SetMusicPosition ¶
func SetMusicVolume ¶
func SetPanning ¶
func SetPostMix ¶
func SetPostMix(mix_func func([]uint8))
func SetReverseStereo ¶
func SetSoundFonts ¶
func SetSynchroValue ¶
func UnregisterAllEffects ¶
Types ¶
type Chunk ¶
func QuickLoad_RAW ¶
func QuickLoad_WAV ¶
func (*Chunk) FadeInTimed ¶
func (*Chunk) PlayChannel ¶
type EffectDoneT ¶
type EffectDoneT func(channel int)
type EffectFuncT ¶
Click to show internal directories.
Click to hide internal directories.