Documentation ¶
Overview ¶
Package schedule contains methods to start different types of clients/servers
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NanBreakSize = 44100 * 1
NanBreakSize is the number of nan-samples to insert between songs, which players use to realign playback
var SampleRate = 44100
SampleRate is the sample rate of the stream
var StreamChunkSize = 44100 * 4
StreamChunkSize is the size of one stream chunk in samples
var StreamChunkTime = 4 * time.Second
StreamChunkTime is the duration is takes to play one stream chunk
var StreamDelay = 15 * time.Second
StreamDelay is the delay of the stream, which players use to decode chunks
var StreamStartDelay = 5 * time.Second
StreamStartDelay is the delay before starting the stream
var TimeSyncCycleDelay = 10 * time.Millisecond
TimeSyncCycleDelay is the delay between cycles in one time sync
var TimeSyncCycles = 500
TimeSyncCycles is the number of cycles used to sync time to server
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.