dsp

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package dsp houses lightweight digital-signal-processing helpers used by the media pipeline (RMS, energy, gain, etc.). Kept dependency-free so any layer above pkg/media can use it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RMSPCM16LE

func RMSPCM16LE(pcm []byte) float64

RMSPCM16LE returns the RMS level of signed 16-bit little-endian PCM samples. Returns 0 when the buffer is too short to contain a full sample.

Types

This section is empty.

Jump to

Keyboard shortcuts

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