From 688d6a09c854b0921b03ccef816339c87350b679 Mon Sep 17 00:00:00 2001 From: Tim Cooper Date: Fri, 11 Dec 2015 19:37:34 -0400 Subject: [PATCH] v0.8.0 --- README.md | 2 +- apiaudio.go | 2 +- apitimer.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 222ad7d..ae4c8c5 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ Object containing each connected user on the server, with the keys being the ses ## Changelog -- 0.8.0 (Next) +- 0.8.0 (2015-12-11) - Switch to stream-based audio. Individual audios streams can be created then played, paused, and stopped. - Add `gumble.ConnectEvent` wrapper - Add pipe support to `piepan.Audio.New` diff --git a/apiaudio.go b/apiaudio.go index 536be69..fb57aaa 100644 --- a/apiaudio.go +++ b/apiaudio.go @@ -111,7 +111,7 @@ func (s *State) apiAudioNew(tbl *lua.LTable) *audioStream { } source = gumbleffmpeg.SourceExec(exec.String(), argsStr...) default: - panic("invalid piepan.Audio.Play source type") + panic("invalid piepan.Audio.New source type") } stream := &audioStream{ diff --git a/apitimer.go b/apitimer.go index 9707593..f0ebbc4 100644 --- a/apitimer.go +++ b/apitimer.go @@ -7,18 +7,18 @@ import ( ) type timer struct { - cancel chan bool + cancel chan struct{} } func (t *timer) Cancel() { if t.cancel != nil { - t.cancel <- true + t.cancel <- struct{}{} } } func (s *State) apiTimerNew(callback *lua.LFunction, timeout int) *timer { t := &timer{ - cancel: make(chan bool), + cancel: make(chan struct{}), } go func() {