Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type L8SoundData ¶
type L8SoundData struct {
// contains filtered or unexported fields
}
L8SoundData is a in-memory sound buffer.
func Load ¶
func Load(source io.Reader) (*L8SoundData, error)
Load reads from the provided source a Creative Voice Sound and returns the data.
func NewL8SoundData ¶
func NewL8SoundData(sampleRate float32, samples []byte) *L8SoundData
NewL8SoundData returns a new sound data instance with the given data.
func (*L8SoundData) AllSamples ¶
func (data *L8SoundData) AllSamples() []byte
func (*L8SoundData) SampleCount ¶
func (data *L8SoundData) SampleCount() int
SampleCount returns the count of samples available in this data.
func (*L8SoundData) SampleRate ¶
func (data *L8SoundData) SampleRate() float32
SampleRate returns the amount of samples for one second.
func (*L8SoundData) Samples ¶
func (data *L8SoundData) Samples(from, to int) []byte
Samples returns the samples in the given range
Click to show internal directories.
Click to hide internal directories.