Working on bug in leaving
This commit is contained in:
4
sound.py
4
sound.py
@@ -28,12 +28,12 @@ class PCMStream:
|
||||
self.stream.close(ignore_errors=True)
|
||||
|
||||
# Stops the current running stream but does not destroy it
|
||||
def pause(self):
|
||||
async def pause(self):
|
||||
if self.stream.active:
|
||||
self.stream.stop(ignore_errors=True)
|
||||
|
||||
# Plays the stream
|
||||
def play(self):
|
||||
async def play(self):
|
||||
if not self.stream.active:
|
||||
self.stream.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user