tia

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	Spec() spec.Spec
	UseAudio() bool
	UseStereo() bool
	SampleRate() (int, bool)
}

type Limiter added in v0.7.3

type Limiter interface {
	Nudge()
}

type Register added in v0.7.3

type Register int
const (
	VBLANK Register = 0x01
	INPT0  Register = 0x08
	INPT1  Register = 0x09
	INPT2  Register = 0x0a
	INPT3  Register = 0x0b
	INPT4  Register = 0x0c
	INPT5  Register = 0x0d
	AUDC0  Register = 0x15
	AUDC1  Register = 0x16
	AUDF0  Register = 0x17
	AUDF1  Register = 0x18
	AUDV0  Register = 0x19
	AUDV1  Register = 0x1a
)

type TIA

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

func Create

func Create(ctx Context, g *gui.GUI, limiter Limiter) *TIA

func (*TIA) Access

func (tia *TIA) Access(write bool, idx uint16, data uint8) (uint8, error)

func (*TIA) AudioBuffer

func (tia *TIA) AudioBuffer() gui.AudioReader

func (*TIA) Insert added in v0.4.2

func (tia *TIA) Insert(externalChips audio.SoundChipIterator) error

func (*TIA) Label

func (tia *TIA) Label() string

func (*TIA) PaddlesGrounded added in v0.7.3

func (tia *TIA) PaddlesGrounded() bool

func (*TIA) PortWrite

func (tia *TIA) PortWrite(reg Register, data uint8, mask uint8) error

PortWrite connects peripherals to the RIOT via the player ports

func (*TIA) Reset added in v0.7.0

func (tia *TIA) Reset() error

func (*TIA) Status

func (tia *TIA) Status() string

func (*TIA) String added in v0.7.3

func (tia *TIA) String() string

func (*TIA) Tick

func (tia *TIA) Tick()

Directories

Path Synopsis
Package audio implements the audio generation of the TIA.
Package audio implements the audio generation of the TIA.
mix
Package mix is used to combine two distinct sound sources into either a mono or stereo signal.
Package mix is used to combine two distinct sound sources into either a mono or stereo signal.

Jump to

Keyboard shortcuts

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