audio

package
v0.0.0-...-486f928 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 0 Imported by: 3

Documentation

Overview

Global audio related configuration options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioConfig

type AudioConfig struct {
	// The bit depth of the output stream.
	// Most sinks support both 8 and 16 bit. Default: 16.
	BitDepth int

	// The sample rate of the output stream.
	// Default: 44100.
	SampleRate int

	// Default: true
	Stereo bool

	// The number of times per second the Synth should
	// handle events of its event queue.
	HandleEventsPerSecond    int
	MidiEventInputBufferSize int
	Debug                    bool
}

func NewAudioConfig

func NewAudioConfig() *AudioConfig

func (*AudioConfig) GetNumberOfChannels

func (c *AudioConfig) GetNumberOfChannels() int

Jump to

Keyboard shortcuts

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