pcm

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: BSD-3-Clause Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// The number of audio channels
	Channels int
	// Sample rate (the higher, the better)
	SampleRate int
	// Number of frames in a period
	PeriodSize int
	// Number of periods
	PeriodCount int
	// Audiocodec (e.g. tinyalsa.PCM_FORMAT_S24_LE)
	Format           tinypcm.Format
	StartThreshold   int
	StopThreshold    int
	SilenceThreshold int
}

type Info

type Info struct {
	// Mask that represents the type of read or write methods available
	Access uint
	// Mask that represents the PCM_FORMAT available (e.g. PCM_FORMAT_32_LE)
	Format0 uint
	// Mask that represents the PCM_FORMAT available (e.g. PCM_FORMAT_32_LE)
	Format1 uint
	// Pcm formats available
	FormatNames []string
	// Mask that represents the subformat available
	Subformat uint
	// Minimum available rate
	RateMin uint
	// Maximum available rate
	RateMax uint
	// Minimum available channels
	ChannelsMin uint
	// Maximum available channels
	ChannelsMax uint
	// Minimum available sample bits
	SampleBitsMin uint
	// Maximum available sample bits
	SampleBitsMax uint
	// Minimum available period size
	PeriodSizeMin uint
	// Maximum available period size
	PeriodSizeMax uint
	// Minimum available period count
	PeriodCountMin uint
	// Maximum available period count
	PeriodCountMax uint
}

Jump to

Keyboard shortcuts

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