audio

package
v0.0.0-...-03afc55 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetGlobalVolume

func SetGlobalVolume(vol float64)

func SetListenerDirection

func SetListenerDirection(x, y, z float32)

func SetListenerPosition

func SetListenerPosition(x, y, z float32)

Types

type Music

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

func NewMusic

func NewMusic(r io.Reader) Music

NewMusic creates a new music object from the reader Note: this will close the Reader if closable

func (Music) Free

func (m Music) Free()

func (Music) Play

func (m Music) Play()

func (Music) SetPitch

func (m Music) SetPitch(v float64)

func (Music) SetVolume

func (m Music) SetVolume(v float64)

func (Music) Status

func (m Music) Status() Status

func (Music) Stop

func (m Music) Stop()

type Sound

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

func NewSound

func NewSound() Sound

func (Sound) Free

func (s Sound) Free()

func (Sound) Play

func (s Sound) Play()

func (Sound) SetAttenuation

func (s Sound) SetAttenuation(att float64)

func (Sound) SetBuffer

func (s Sound) SetBuffer(sb SoundBuffer)

func (Sound) SetMinDistance

func (s Sound) SetMinDistance(dist float64)

func (Sound) SetPitch

func (s Sound) SetPitch(v float64)

func (Sound) SetPosition

func (s Sound) SetPosition(x, y, z float32)

func (Sound) SetRelative

func (s Sound) SetRelative(rel bool)

func (Sound) SetVolume

func (s Sound) SetVolume(v float64)

func (Sound) Status

func (s Sound) Status() Status

type SoundBuffer

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

func NewSoundBuffer

func NewSoundBuffer(file string) SoundBuffer

func NewSoundBufferData

func NewSoundBufferData(data []byte) SoundBuffer

func (SoundBuffer) Free

func (sb SoundBuffer) Free()

type Status

type Status C.sfSoundStatus
const (
	StatStopped Status = C.sfStopped
	StatPaused  Status = C.sfPaused
	StatPlaying Status = C.sfPlaying
)

Jump to

Keyboard shortcuts

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