schedule

package
v0.0.0-...-62b9041 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package schedule contains methods to start different types of clients/servers

Index

Constants

This section is empty.

Variables

View Source
var NanBreakSize = 44100 * 1

NanBreakSize is the number of nan-samples to insert between songs, which players use to realign playback

View Source
var SampleRate = 44100

SampleRate is the sample rate of the stream

View Source
var StreamChunkSize = 44100 * 4

StreamChunkSize is the size of one stream chunk in samples

View Source
var StreamChunkTime = 4 * time.Second

StreamChunkTime is the duration is takes to play one stream chunk

View Source
var StreamDelay = 15 * time.Second

StreamDelay is the delay of the stream, which players use to decode chunks

View Source
var StreamStartDelay = 5 * time.Second

StreamStartDelay is the delay before starting the stream

View Source
var TimeSyncCycleDelay = 10 * time.Millisecond

TimeSyncCycleDelay is the delay between cycles in one time sync

View Source
var TimeSyncCycles = 500

TimeSyncCycles is the number of cycles used to sync time to server

View Source
var TimeSyncInterval = 10 * time.Minute

TimeSyncInterval is the time interval between syncing time to server

Functions

func Infoer

func Infoer(sender comm.MessageSender)

Infoer start a music-sync client in infoer mode, using sender to communicate with the server

func Player

func Player(sender comm.MessageSender)

Player starts a music-sync player, using sender to communicate with the server

func Server

func Server(sender comm.MessageSender)

Server starts a music-sync server, using sender to communicate with all clients

Types

This section is empty.

Jump to

Keyboard shortcuts

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