Documentation ¶
Index ¶
- type JSAudio
- func (this *JSAudio) GetDuration() time.Duration
- func (this *JSAudio) GetPlayingDuration() time.Duration
- func (this *JSAudio) GetVolume() float32
- func (this *JSAudio) IsPlaying() bool
- func (this *JSAudio) Pause()
- func (this *JSAudio) Play(loop bool)
- func (this *JSAudio) Resume()
- func (this *JSAudio) SetVolume(vol float32)
- func (this *JSAudio) Stop()
- func (this *JSAudio) Terminate()
- type JSAudioManager
- func (this *JSAudioManager) CreateMusic(name string, samples []byte, format uint8, sampleRate int) gohome.Music
- func (this *JSAudioManager) CreateSound(name string, samples []byte, format uint8, sampleRate int) gohome.Sound
- func (this *JSAudioManager) GetVolume() float32
- func (this *JSAudioManager) Init()
- func (this *JSAudioManager) LoadMusic(name, path string) gohome.Music
- func (this *JSAudioManager) LoadSound(name, path string) gohome.Sound
- func (this *JSAudioManager) SetVolume(vol float32)
- func (this *JSAudioManager) Terminate()
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 (*JSAudio) GetPlayingDuration ¶
type JSAudioManager ¶
type JSAudioManager struct {
// contains filtered or unexported fields
}
func (*JSAudioManager) CreateMusic ¶
func (*JSAudioManager) CreateSound ¶
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()
Click to show internal directories.
Click to hide internal directories.