audio

package
v0.0.0-...-45a14b4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Duration   = 2
	SampleRate = 44100
	Frequency  = 440 // Pitch Standard
)
View Source
const SamplesCount = 1024

Variables

This section is empty.

Functions

func Generate

func Generate()

Types

type Audio

type Audio struct {
	AudioSample *Sample
	// contains filtered or unexported fields
}

func NewAudio

func NewAudio() *Audio

func (*Audio) Init

func (a *Audio) Init()

func (*Audio) Stop

func (a *Audio) Stop()

func (*Audio) Update

func (a *Audio) Update()

type Oscillator

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

type Sample

type Sample struct {
	Sample       []float32
	SamplesCount int32
}

func NewAudioSample

func NewAudioSample() *Sample

Jump to

Keyboard shortcuts

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