data

package
v0.0.0-...-7484c5c Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWriter

func NewWriter(path, prefix string) (io.WriteCloser, error)

Types

type FlushFunc

type FlushFunc func(id string, h *wav.Header, data []byte) error

type Flusher

type Flusher struct {
	// contains filtered or unexported fields
}

func NewFlusher

func NewFlusher(dur time.Duration, fn FlushFunc) *Flusher

func (*Flusher) ForceFlush

func (f *Flusher) ForceFlush(id string, h *wav.Header) error

func (*Flusher) Write

func (f *Flusher) Write(id string, h *wav.Header, b []byte) (n int, err error)

type GZipFlusher

type GZipFlusher struct {
	// contains filtered or unexported fields
}

func NewGZipFlusher

func NewGZipFlusher(dur time.Duration, fn FlushFunc) *GZipFlusher

func (*GZipFlusher) ForceFlush

func (f *GZipFlusher) ForceFlush(id string, h *wav.Header) error

func (*GZipFlusher) Write

func (f *GZipFlusher) Write(id string, h *wav.Header, b []byte) (n int, err error)

type ZLibFlusher

type ZLibFlusher struct {
	// contains filtered or unexported fields
}

func NewZLibFlusher

func NewZLibFlusher(dur time.Duration, fn FlushFunc) *ZLibFlusher

func (*ZLibFlusher) ForceFlush

func (f *ZLibFlusher) ForceFlush(id string, h *wav.Header) error

func (*ZLibFlusher) Write

func (f *ZLibFlusher) Write(id string, h *wav.Header, b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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