(...songs: Song[])
| 138 | } |
| 139 | |
| 140 | public enqueue(...songs: Song[]) { |
| 141 | if (this.waitTimeout !== null) clearTimeout(this.waitTimeout); |
| 142 | this.waitTimeout = null; |
| 143 | this.stopped = false; |
| 144 | this.songs = this.songs.concat(songs); |
| 145 | this.processQueue(); |
| 146 | } |
| 147 | |
| 148 | public stop() { |
| 149 | if (this.stopped) return; |
no test coverage detected