Documentation
¶
Index ¶
- Constants
- Variables
- func Init()
- func LoadBeatmapSamples(dir string)
- func LoadSamples()
- func PlaySample(sampleSet, additionSet, hitsound, index int, volume float64)
- func PlaySliderTick(sampleSet, index int, volume float64)
- type Callback
- type Music
- func (wv *Music) GetBeat() float64
- func (wv *Music) GetFFT() []float32
- func (wv *Music) GetLength() float64
- func (wv *Music) GetPeak() float64
- func (wv *Music) GetPosition() float64
- func (wv *Music) GetState() int
- func (wv *Music) Pause()
- func (wv *Music) Play()
- func (wv *Music) PlayV(volume float64)
- func (wv *Music) RegisterCallback(f func())
- func (wv *Music) Resume()
- func (wv *Music) SetPitch(tempo float64)
- func (wv *Music) SetPosition(pos float64)
- func (wv *Music) SetTempo(tempo float64)
- func (wv *Music) SetVolume(vol float64)
- func (wv *Music) SetVolumeRelative(vol float64)
- func (wv *Music) Stop()
- func (wv *Music) UnregisterCallback(f func())
- func (wv *Music) Update()
- type Sample
Constants ¶
View Source
const ( MUSIC_STOPPED = 0 MUSIC_PLAYING = 1 MUSIC_STALLED = 2 MUSIC_PAUSED = 3 )
Variables ¶
View Source
var MapSamples [3][5]map[int]*Sample
View Source
var Samples [3][5]*Sample
Functions ¶
func LoadBeatmapSamples ¶
func LoadBeatmapSamples(dir string)
func LoadSamples ¶
func LoadSamples()
func PlaySample ¶
func PlaySliderTick ¶
Types ¶
type Music ¶
type Music struct {
// contains filtered or unexported fields
}
func (*Music) GetPosition ¶
func (*Music) RegisterCallback ¶
func (wv *Music) RegisterCallback(f func())
func (*Music) SetPosition ¶
func (*Music) SetVolumeRelative ¶
func (*Music) UnregisterCallback ¶
func (wv *Music) UnregisterCallback(f func())
Click to show internal directories.
Click to hide internal directories.