mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +01:00
audio: Remove duplicate check for io.Seeker (#1051)
This commit is contained in:
parent
dcad3d21c9
commit
ad00414a2a
@ -525,10 +525,6 @@ func (p *Player) Seek(offset time.Duration) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *playerImpl) Seek(offset time.Duration) error {
|
func (p *playerImpl) Seek(offset time.Duration) error {
|
||||||
if _, ok := p.src.(io.Seeker); !ok {
|
|
||||||
panic("audio: player to be sought must be io.Seeker")
|
|
||||||
}
|
|
||||||
|
|
||||||
p.m.Lock()
|
p.m.Lock()
|
||||||
defer p.m.Unlock()
|
defer p.m.Unlock()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user