Remove debug lines.

master
Icedream 2018-07-09 12:36:54 +02:00
parent 4dc3a544f7
commit f5a86e9282
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
3 changed files with 1 additions and 10 deletions

View File

@ -75,8 +75,6 @@ func (instance *pluginInstance) Init() {
sr := container.Sub()
defer sr.Close()
log.Println("Someone tuned in to", channelId, channel)
if sendMetadata {
mw = streams.NewMetadataInjector(w, metaInt)
nw = mw

View File

@ -22,8 +22,6 @@ func (instance *pluginInstance) Init() {
channelManager := instance.channelManager
go func() {
time.Sleep(2 * time.Second) // give burst cache a chance to realize
c, err := channelManager.Open("sine")
if err != nil {
log.Println("ERROR: sine channel could not be opened:", err)

View File

@ -43,16 +43,11 @@ func (stream *SineStream) Read(data []byte) (n int, err error) {
targetTime := stream.Timestamp.
Add(time.Duration(float64(time.Second) * float64(stream.State) / float64(stream.Samplerate)))
delay := targetTime.Sub(time.Now())
/*log.Println("state", stream.State, "value", sampleValue, "time", targetTime, "delay", delay)
time.Sleep(time.Second)*/
if delay > 0 {
<-time.After(delay)
}
/*if stream.State%uint64(stream.Samplerate) == 0 {
log.Println("state", stream.State, "value", sampleValue, "time", targetTime, "delay", delay)
}*/
stream.State++
}