audio

package
v0.0.0-...-4cf9a44 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2017 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AAC string = "aac"
View Source
var M4A string = "m4a"
View Source
var OGG string = "ogg"

Functions

func DownloadAllAudio

func DownloadAllAudio(timeSlices []TimeSlice)

func DownloadAndEncode

func DownloadAndEncode(slices []TimeSlice, rv RequestVars) string

func DownloadAndStream

func DownloadAndStream(slices []TimeSlice, rv RequestVars, w io.Writer)

func InitDirs

func InitDirs()

Types

type AudioSegment

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

type DatabaseVars

type DatabaseVars struct {
	DB_HOST     string `json:"DB_HOST"`
	DB_PORT     int    `json:"DB_PORT"`
	DB_USER     string `json:"DB_USER"`
	DB_PASSWORD string `json:"DB_PASSWORD"`
	DB_NAME     string `json:"DB_NAME"`
}

type RequestVars

type RequestVars struct {
	Mission  int
	Channels []string
	Format   string
	Start    int
	Duration int
}

container for the request variables

type TimeSlice

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

local paths to audio files for all channels belonging to particular time slice

func GetRequestSlices

func GetRequestSlices(rv RequestVars) []TimeSlice

func NewTimeSlice

func NewTimeSlice(start, end int) TimeSlice

Jump to

Keyboard shortcuts

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