audio

package
v0.0.0-...-491ee29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MapSamples [3][7]map[int]*bass.Sample
View Source
var Samples [3][7]*bass.Sample

Functions

func AddListener

func AddListener(function func(sampleSet int, hitsoundIndex, index int, volume float64, objNum int64))

func LoadBeatmapSamples

func LoadBeatmapSamples(fMap map[string]string)

func LoadSample

func LoadSample(name string) *bass.Sample

func LoadSamples

func LoadSamples()

func PlayFailSound

func PlayFailSound()

func PlaySample

func PlaySample(sampleSet, additionSet, hitsound, index int, volume float64, objNum int64, xPos float64)

func PlaySliderLoops

func PlaySliderLoops(sampleSet, additionSet, hitsound, index int, volume float64, objNum int64, xPos float64)

func PlaySliderTick

func PlaySliderTick(sampleSet, index int, volume float64, objNum int64, xPos float64)

func StopSliderLoops

func StopSliderLoops()

Types

type HitSound

type HitSound struct {
	Sample int
	Info   HitSoundInfo
}

type HitSoundInfo

type HitSoundInfo struct {
	SampleSet    int
	AdditionSet  int
	CustomIndex  int
	CustomVolume float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL