samplelib

package
v0.0.0-...-13e2eaa Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioStream

type AudioStream interface {
	Nullable
	SampleRate() string
	BitDepth() int
	ChannelCount() int
	CodecName() string
	CodecType() string
	Duration() string
}

func NullAudioStream

func NullAudioStream() AudioStream

type DataSource

type DataSource interface {
	RootNode() (Node, error)
	ChildrenOf(node Node) ([]Node, error)
	SamplesOf(node Node) ([]Sample, error)
	MetaOf(sample Sample) (SampleMeta, error)
}

func NewFilesystemDataSource

func NewFilesystemDataSource(root string) DataSource

type Entity

type Entity interface {
	Nullable
	Name() string
	Path() string
	Equal(e Entity) bool
}

func NullEntity

func NullEntity() Entity

type FileType

type FileType struct {
	types.Type
}

type Meta

type Meta interface {
	Entity
	Description() string
	Keywords() []string
}

func NullMeta

func NullMeta() Meta

type Node

type Node interface {
	Entity
	Parent() Node
}

func NullNode

func NullNode() Node

type Nullable

type Nullable interface {
	Null() bool
}

func NullNullable

func NullNullable() Nullable

type Sample

type Sample interface {
	Entity
}

func NullSample

func NullSample() Sample

type SampleMeta

type SampleMeta interface {
	Meta
	FileType() FileType
	AudioStream() AudioStream
}

func NullSampleMeta

func NullSampleMeta() SampleMeta

Jump to

Keyboard shortcuts

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