types

package
v0.0.0-...-4503ccc Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PCMFormatUndefined = PCMFormat(iota)
	PCMFormatU8
	PCMFormatS16LE
	PCMFormatS16BE
	PCMFormatFloat32LE
	PCMFormatFloat32BE
	PCMFormatS24LE
	PCMFormatS24BE
	PCMFormatS32LE
	PCMFormatS32BE
	PCMFormatFloat64LE
	PCMFormatFloat64BE
	PCMFormatS64LE
	PCMFormatS64BE
	EndOfPCMFormat
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PCMFormat

type PCMFormat uint

func (PCMFormat) Size

func (f PCMFormat) Size() uint32

func (PCMFormat) String

func (f PCMFormat) String() string

type PlayerPCM

type PlayerPCM interface {
	Ping() error
	PlayPCM(
		sampleRate uint32,
		channels uint16,
		format PCMFormat,
		bufferSize time.Duration,
		reader io.Reader,
	) (Stream, error)
}

type Stream

type Stream interface {
	Drain() error
	Close() error
}

Jump to

Keyboard shortcuts

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