mix

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: GPL-3.0, GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package mix is used to combine two distinct sound sources into either a mono or stereo signal.

The mono mix is created according to the information in the document, "TIA Sounding Off In The Digital Domain", by Chris Brenner. Announcment link below:

https://atariage.com/forums/topic/249865-tia-sounding-off-in-the-digital-domain/

The exact implementation here is an optimisation of that work, as found by Thomas Jzentsh (as mentioned in the link above)

Both 6502.ts and Stella source was used as reference. Both projects are exactly equivalent.

  6502.ts (published under the MIT licence)
		https://github.com/6502ts/6502.ts/blob/6f923e5fe693b82a2448ffac1f85aea9693cacff/src/machine/stella/tia/PCMAudio.ts
		https://github.com/6502ts/6502.ts/blob/6f923e5fe693b82a2448ffac1f85aea9693cacff/src/machine/stella/tia/PCMChannel.ts

 Stella (published under the GNU GPL v2.0 licence)
		https://github.com/stella-emu/stella/blob/e6af23d6c12893dd17711002971087f28f87c31f/src/emucore/tia/Audio.cxx
		https://github.com/stella-emu/stella/blob/e6af23d6c12893dd17711002971087f28f87c31f/src/emucore/tia/AudioChannel.cxx

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mono

func Mono(channel0 uint8, channel1 uint8) int16

Mono returns a single volume value.

func Stereo

func Stereo(channel0 uint8, channel1 uint8) (int16, int16)

Stereo return a pair of volume values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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