audio

package
v0.0.0-...-88ca599 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APU

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

func NewAPU

func NewAPU(io *ioports.IOPorts, audioPlayer coreio.AudioPlayer) *APU

func (*APU) Tick

func (apu *APU) Tick(cycles uint8)

type SquareChannel

type SquareChannel struct {
	Volume uint8
	// contains filtered or unexported fields
}

func NewSquareChannel

func NewSquareChannel() *SquareChannel

func (*SquareChannel) EnableSoundLength

func (sc *SquareChannel) EnableSoundLength(enable bool)

func (*SquareChannel) Initial

func (sc *SquareChannel) Initial()

func (*SquareChannel) SelectPattern

func (sc *SquareChannel) SelectPattern(pattern uint8)

func (*SquareChannel) SetFrequency

func (sc *SquareChannel) SetFrequency(freq uint16)

func (*SquareChannel) SetSoundLength

func (sc *SquareChannel) SetSoundLength(soundLength uint8)

func (*SquareChannel) Tick

func (sc *SquareChannel) Tick() uint8

Jump to

Keyboard shortcuts

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