audio: refactoring: remove Reset from Player

This commit is contained in:
Hajime Hoshi 2022-07-01 02:33:39 +09:00
parent 7232b1a8a9
commit 8cb023e3c8
3 changed files with 0 additions and 17 deletions

View File

@ -79,12 +79,6 @@ func (p *dummyPlayer) IsPlaying() bool {
return p.playing
}
func (p *dummyPlayer) Reset() {
p.m.Lock()
defer p.m.Unlock()
p.playing = false
}
func (p *dummyPlayer) Volume() float64 {
return p.volume
}

View File

@ -275,16 +275,6 @@ func (p *playerImpl) Seek(offset int64, whence int) (int64, error) {
return s.Seek(offset, whence)
}
func (p *Player) Reset() {
p.p.Reset()
}
func (p *playerImpl) Reset() {
p.m.Lock()
defer p.m.Unlock()
p.resetImpl()
}
func (p *playerImpl) resetImpl() {
if p.state == playerClosed {
return

View File

@ -27,7 +27,6 @@ type player interface {
Pause()
Play()
IsPlaying() bool
Reset()
Volume() float64
SetVolume(volume float64)
UnplayedBufferSize() int