actions

package
Version: v0.0.0-...-9e3d11e Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverFiles

func DiscoverFiles(dir string, filters ...Filter) ([]string, error)

DiscoverFiles looks for track names in a given directory, and returns them as a slice.

func FilterWaves

func FilterWaves(unfiltered []string) []string

FilterWaves returns strings ending in .wav.

func MapTrackNameToFilename

func MapTrackNameToFilename(name string) string

MapTrackNameToFilename returns a valid filename for a track name.

func MapTracksToNames

func MapTracksToNames(ts tracks.Tracks, devs venue.Devices) (tracks.Tracks, error)

MapTracksToNames based on their channel name.

func WaveCheck

func WaveCheck(file string) error

func WaveDump

func WaveDump(file string, offset, length time.Duration) ([]float32, int, error)

func WaveInfo

func WaveInfo(file string) (string, error)

Types

type DiscoverFilesFn

type DiscoverFilesFn func(dir string, filters ...Filter) ([]string, error)

type Filter

type Filter func(unfiltered []string) (filtered []string)

Filter defines a file filter function.

Jump to

Keyboard shortcuts

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