Skip to content
This repository has been archived by the owner on Mar 18, 2020. It is now read-only.

Commit

Permalink
v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Cooper committed Dec 11, 2015
1 parent 736f748 commit 688d6a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion apiaudio.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
6 changes: 3 additions & 3 deletions apitimer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 688d6a0

Please sign in to comment.