sync

package
v0.0.0-...-f265c88 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2015 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "sync"

Variables

View Source
var (
	FormatFLAC Format = Format{"flac", "flac", "flac", 8, false}
	FormatALAC        = Format{"alac", "m4a", "alac", -1, false}
	FormatWave        = Format{"wav", "wav", "pcm_s16le", -1, true}

	FormatV0       = Format{"mp3v0", "mp3", "mp3", 0, false}
	FormatV1       = Format{"mp3v1", "mp3", "mp3", 1, false}
	FormatV2       = Format{"mp3v2", "mp3", "mp3", 2, false}
	FormatMP3_320K = Format{"mp3_320k", "mp3", "mp3", 320, true}
	FormatMP3_256K = Format{"mp3_256k", "mp3", "mp3", 256, true}
	FormatMP3_192K = Format{"mp3_192k", "mp3", "mp3", 192, true}

	FormatAAC_320K = Format{"aac_320k", "m4a", "aac", 320, true}

	FormatList = []Format{FormatFLAC, FormatALAC,
		FormatV0, FormatV1, FormatV2,
		FormatMP3_192K, FormatMP3_256K, FormatAAC_320K,
		FormatAAC_320K,
	}

	DefaultConfig Config = Config{
		ConvertRules: map[string]string{
			"flac": "mp3v0",
			"alac": "mp3v0",
			"wav":  "mp3v0",
		},
	}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ConvertRules map[string]string
	Formats      map[string]Format
}

type Format

type Format struct {
	Name string

	Extension       string // commonly used container extension
	Encoder         string // encoder name in ffmpeg
	Quality         int    // quality or bitrate
	ConstantBitrate bool
}

type Sync

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

func (*Sync) Start

func (s *Sync) Start(c core.Core, db *db.DB)

func (*Sync) Sync

func (s *Sync) Sync(targetPath string, convert bool) error

Jump to

Keyboard shortcuts

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