audio

package
v0.0.0-...-c49a14d Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Mute ensures no samples are output
	Mute bool

	// ClickWhenDriveHeadMoves makes the speaker click once every time the stepper motor magnets change
	ClickWhenDriveHeadMoves bool
)

Functions

func Click

func Click()

Click handles a speaker click

func ForwardToFrameCycle

func ForwardToFrameCycle()

ForwardToFrameCycle calculates how many audio samples need to be written to the channel based on how many CPU cycles have been executed since the last flush and shove them into the channel.

func InitEbiten

func InitEbiten()

InitEbiten initializes the audio sets up the ebiten output stream

Types

This section is empty.

Jump to

Keyboard shortcuts

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