Documentation ¶
Index ¶
Constants ¶
View Source
const MaxChannelCount = 2
View Source
const MaxSampleSize = 2048
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CleanupFunc ¶ added in v1.7.0
type CleanupFunc func() error
type Config ¶
type Config struct { // The name of the backend from the input package Backend string // The name of the device to pull data from Device string // The rate that samples are read SampleRate float64 // The number of samples per batch SampleSize int // The number of channels to read data from ChannelCount int // The number of times per second to process data ProcessRate int // Merge multiple channels into a single stream Combine bool // testing. leave false // Use threaded processor UseThreaded bool // Function to call when setting up the pipeline SetupFunc SetupFunc // Function to call when starting the pipeline StartFunc StartFunc // Function to call when cleaning up the pipeline CleanupFunc CleanupFunc // Where to send the data from the audio analysis Output processor.Output // Method to run on data before running fft Windower window.Function // Analyzer to run analysis on data Analyzer dsp.Analyzer // Smoother to run smoothing on output from Analyzer Smoother dsp.Smoother }
func NewZeroConfig ¶
func NewZeroConfig() Config
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package dsp provides audio analysis
|
Package dsp provides audio analysis |
window
Package window provides Window Functions for singnal analysis
|
Package window provides Window Functions for singnal analysis |
Package fft provides generic abstractions around fourier transformers.
|
Package fft provides generic abstractions around fourier transformers. |
all
Package all imports all backends implemented by the input package.
|
Package all imports all backends implemented by the input package. |
common/execread
Package execread provides a shared struct that wraps around cmd.
|
Package execread provides a shared struct that wraps around cmd. |
portaudio/portaudio
Package portaudio contains modifications of CGO bindings for portaudio
|
Package portaudio contains modifications of CGO bindings for portaudio |
Click to show internal directories.
Click to hide internal directories.