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