mem

package
v0.0.0-...-e78e2ff Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2018 License: BSD-3-Clause Imports: 0 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type L8SoundData

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

L8SoundData is a in-memory sound buffer.

func NewL8SoundData

func NewL8SoundData(sampleRate float32, samples []byte) *L8SoundData

NewL8SoundData returns a new sound data instance with the given data.

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

Jump to

Keyboard shortcuts

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