()
| 228 | } |
| 229 | |
| 230 | func (p *Player) eof() bool { |
| 231 | r := false |
| 232 | p.sync(func() { |
| 233 | r = p.srcEOF && len(p.buf) == 0 |
| 234 | }) |
| 235 | return r |
| 236 | } |
| 237 | |
| 238 | // IsPlaying returns boolean indicating whether the player is playing. |
| 239 | func (p *Player) IsPlaying() bool { |