prevent errors when audiobuffer is not setup
This commit is contained in:
parent
a7e51d1158
commit
992abdef76
1 changed files with 4 additions and 4 deletions
|
@ -28,15 +28,15 @@ class Player extends EventEmitter {
|
|||
}
|
||||
|
||||
play() {
|
||||
this.audiobuffer.play();
|
||||
this.audiobuffer?.play();
|
||||
}
|
||||
|
||||
pause() {
|
||||
this.audiobuffer.pause();
|
||||
this.audiobuffer?.pause();
|
||||
}
|
||||
|
||||
async stop() {
|
||||
this.audiobuffer.stop();
|
||||
stop() {
|
||||
this.audiobuffer?.stop();
|
||||
}
|
||||
|
||||
isReady() {
|
||||
|
|
Loading…
Reference in a new issue