audio: Refactoring

This commit is contained in:
Hajime Hoshi 2017-12-23 05:02:15 +09:00
parent 7cc6154de6
commit 3dcb486a5c

View File

@ -320,11 +320,6 @@ func BytesReadSeekCloser(b []byte) ReadSeekCloser {
return &bytesReadSeekCloser{reader: bytes.NewReader(b)}
}
type readingResult struct {
data []byte
err error
}
// Player is an audio player which has one stream.
type Player struct {
players *players
@ -467,7 +462,7 @@ func (p *Player) startRead() {
}
func (p *Player) readLoop() {
t := time.Tick(1 * time.Millisecond)
t := time.Tick(time.Millisecond)
for {
select {
case <-p.closeCh: