Restart restarts the AudioSystem's loop when it's paused.
()
| 239 | |
| 240 | // Restart restarts the AudioSystem's loop when it's paused. |
| 241 | func (a *AudioSystem) Restart() { |
| 242 | if len(a.restartCh) > 0 { // so it doesn't block |
| 243 | return |
| 244 | } |
| 245 | a.restartCh <- struct{}{} |
| 246 | } |