jsaudio

package
v0.0.0-...-5ecc521 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Zlib Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSAudio

type JSAudio struct {
	// contains filtered or unexported fields
}

func (*JSAudio) GetDuration

func (this *JSAudio) GetDuration() time.Duration

func (*JSAudio) GetPlayingDuration

func (this *JSAudio) GetPlayingDuration() time.Duration

func (*JSAudio) GetVolume

func (this *JSAudio) GetVolume() float32

func (*JSAudio) IsPlaying

func (this *JSAudio) IsPlaying() bool

func (*JSAudio) Pause

func (this *JSAudio) Pause()

func (*JSAudio) Play

func (this *JSAudio) Play(loop bool)

func (*JSAudio) Resume

func (this *JSAudio) Resume()

func (*JSAudio) SetVolume

func (this *JSAudio) SetVolume(vol float32)

func (*JSAudio) Stop

func (this *JSAudio) Stop()

func (*JSAudio) Terminate

func (this *JSAudio) Terminate()

type JSAudioManager

type JSAudioManager struct {
	// contains filtered or unexported fields
}

func (*JSAudioManager) CreateMusic

func (this *JSAudioManager) CreateMusic(name string, samples []byte, format uint8, sampleRate int) gohome.Music

func (*JSAudioManager) CreateSound

func (this *JSAudioManager) CreateSound(name string, samples []byte, format uint8, sampleRate int) gohome.Sound

func (*JSAudioManager) GetVolume

func (this *JSAudioManager) GetVolume() float32

func (*JSAudioManager) Init

func (this *JSAudioManager) Init()

func (*JSAudioManager) LoadMusic

func (this *JSAudioManager) LoadMusic(name, path string) gohome.Music

func (*JSAudioManager) LoadSound

func (this *JSAudioManager) LoadSound(name, path string) gohome.Sound

func (*JSAudioManager) SetVolume

func (this *JSAudioManager) SetVolume(vol float32)

func (*JSAudioManager) Terminate

func (this *JSAudioManager) Terminate()

Jump to

Keyboard shortcuts

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