mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
audio: Remove returning values from Play/Pause
This commit is contained in:
parent
6135929a0e
commit
8e46769284
@ -321,11 +321,8 @@ func (p *playerImpl) Close() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Play plays the stream.
|
// Play plays the stream.
|
||||||
//
|
func (p *Player) Play() {
|
||||||
// Play always returns nil.
|
|
||||||
func (p *Player) Play() error {
|
|
||||||
p.p.Play()
|
p.p.Play()
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *playerImpl) Play() {
|
func (p *playerImpl) Play() {
|
||||||
@ -501,11 +498,8 @@ func (p *playerImpl) Seek(offset time.Duration) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Pause pauses the playing.
|
// Pause pauses the playing.
|
||||||
//
|
func (p *Player) Pause() {
|
||||||
// Pause always returns nil.
|
|
||||||
func (p *Player) Pause() error {
|
|
||||||
p.p.Pause()
|
p.p.Pause()
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *playerImpl) Pause() {
|
func (p *playerImpl) Pause() {
|
||||||
|
Loading…
Reference in New Issue
Block a user