Add missing implementation for create_stream_player.
This commit is contained in:
parent
98ba68bb66
commit
bec7071c48
@ -451,6 +451,7 @@ class VoiceClient:
|
|||||||
StreamPlayer
|
StreamPlayer
|
||||||
A stream player with the operations noted above.
|
A stream player with the operations noted above.
|
||||||
"""
|
"""
|
||||||
|
return StreamPlayer(stream, self.encoder, self._connected, self.play_audio, after)
|
||||||
|
|
||||||
def play_audio(self, data):
|
def play_audio(self, data):
|
||||||
"""Sends an audio packet composed of the data.
|
"""Sends an audio packet composed of the data.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user