+
    rpÐj%T  ã                  óâ  a € 0 t $ R t^ RIHt ^ RIt^ RIt^ RIt^ RIHtH	t	H
t
HtHtHtHt ^RIHt ^RI5 ^RIHt ^RIHtHt ^RIHt ^R	IHtHt ]'       dN   ^R
IHt ^RIHt ^RIH t  ^RI!H"t" ^RI#H$t$ ^RIH%t%H&t&H't'H(t( ^RI)H*t*H+t+ ^RIH,t, ^RI-H.t/H0t1H2t2 ]]+]*3,          t3R]4R&    ^ RI5t6^ RI7t6Rt8Rt:]Pv                  ! ]<4      t= ! R R4      t> ! R R]>4      t?R#   ]9 d    Rt8 L6i ; i)a:  
The MIT License (MIT)

Copyright (c) 2015-present Rapptz

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
)ÚannotationsN)ÚAnyÚCallableÚListÚOptionalÚTYPE_CHECKINGÚTupleÚUnion)Úopus)Ú*)ÚClientException)ÚAudioPlayerÚAudioSource)ÚMISSING)ÚVoiceConnectionStateÚhas_dave)ÚDiscordVoiceWebSocket)ÚClient)ÚGuild)ÚConnectionState)Ú
ClientUser)ÚEncoderÚAPPLICATION_CTLÚBAND_CTLÚ
SIGNAL_CTL)ÚStageChannelÚVoiceChannel)Úabc)ÚGuildVoiceStateÚVoiceServerUpdateÚSupportedModesÚboolÚhas_naclTFÚVoiceProtocolÚVoiceClientc                  ón   € ] tR t^MtRtR R ltR R ltR R ltRR	R
R	/R R lltR R lt	R R lt
RtR# )r#   aŠ  A class that represents the Discord voice protocol.

This is an abstract class. The library provides a concrete implementation
under :class:`VoiceClient`.

This class allows you to implement a protocol to allow for an external
method of sending voice, such as Lavalink_ or a native library implementation.

These classes are passed to :meth:`abc.Connectable.connect <VoiceChannel.connect>`.

.. _Lavalink: https://github.com/freyacodes/Lavalink

Parameters
------------
client: :class:`Client`
    The client (or its subclasses) that started the connection request.
channel: :class:`abc.Connectable`
    The voice channel that is being connected to.
c               ó$   € V ^8„  d   QhRRRRRR/# ©é   Úclientr   Úchannelzabc.ConnectableÚreturnÚNone© )Úformats   "ÚF/opt/hermes/.venv/lib/python3.14/site-packages/discord/voice_client.pyÚ__annotate__ÚVoiceProtocol.__annotate__b   s!   € ÷ 0ñ 0˜vð 0°ð 0ÀDñ 0ó    c                	ó   € Wn         W n        R # ©N)r)   r*   )Úselfr)   r*   s   &&&r/   Ú__init__ÚVoiceProtocol.__init__b   s   € Ø$ŒØ(/Žr2   c               ó    € V ^8„  d   QhRRRR/# ©r(   ÚdataÚGuildVoiceStatePayloadr+   r,   r-   )r.   s   "r/   r0   r1   f   s   € ÷ "ñ "Ð0Fð "Èdñ "r2   c             ƒ  ó   "  € \         h5i)a]  |coro|

An abstract method that is called when the client's voice state
has changed. This corresponds to ``VOICE_STATE_UPDATE``.

.. warning::

    This method is not the same as the event. See: :func:`on_voice_state_update`

Parameters
------------
data: :class:`dict`
    The raw :ddocs:`voice state payload <resources/voice#voice-state-object>`.
©ÚNotImplementedError©r5   r:   s   ""r/   Úon_voice_state_updateÚ#VoiceProtocol.on_voice_state_updatef   s   é € ô "Ð!ùó   ‚	c               ó    € V ^8„  d   QhRRRR/# ©r(   r:   ÚVoiceServerUpdatePayloadr+   r,   r-   )r.   s   "r/   r0   r1   w   s   € ÷ "ñ "Ð1Ið "ÐQUñ "r2   c             ƒ  ó   "  € \         h5i)a  |coro|

An abstract method that is called when initially connecting to voice.
This corresponds to ``VOICE_SERVER_UPDATE``.

Parameters
------------
data: :class:`dict`
    The raw :ddocs:`voice server update payload <topics/gateway-events#voice-server-update>`.
r=   r?   s   ""r/   Úon_voice_server_updateÚ$VoiceProtocol.on_voice_server_updatew   s   é € ô "Ð!ùrB   Ú	self_deafFÚ	self_mutec          
     ó,   € V ^8„  d   QhRRRRRRRRRR/# )	r(   ÚtimeoutÚfloatÚ	reconnectr!   rI   rJ   r+   r,   r-   )r.   s   "r/   r0   r1   „   s1   € ÷ "ñ "¨ð "¸$ð "È4ð "Ðdhð "Ðuyñ "r2   c             ƒ  ó   "  € \         h5i)a˜  |coro|

An abstract method called when the client initiates the connection request.

When a connection is requested initially, the library calls the constructor
under ``__init__`` and then calls :meth:`connect`. If :meth:`connect` fails at
some point then :meth:`disconnect` is called.

Within this method, to start the voice connection flow it is recommended to
use :meth:`Guild.change_voice_state` to start the flow. After which,
:meth:`on_voice_server_update` and :meth:`on_voice_state_update` will be called.
The order that these two are called is unspecified.

Parameters
------------
timeout: :class:`float`
    The timeout for the connection.
reconnect: :class:`bool`
    Whether reconnection is expected.
self_mute: :class:`bool`
    Indicates if the client should be self-muted.

    .. versionadded:: 2.0
self_deaf: :class:`bool`
    Indicates if the client should be self-deafened.

    .. versionadded:: 2.0
r=   )r5   rL   rN   rI   rJ   s   &$$$$r/   ÚconnectÚVoiceProtocol.connect„   s   é € ô: "Ð!ùrB   c               ó    € V ^8„  d   QhRRRR/# ©r(   Úforcer!   r+   r,   r-   )r.   s   "r/   r0   r1   £   s   € ÷ "ñ "¨ð "°$ñ "r2   c             ƒ  ó   "  € \         h5i)z»|coro|

An abstract method called when the client terminates the connection.

See :meth:`cleanup`.

Parameters
------------
force: :class:`bool`
    Whether the disconnection was forced.
r=   ©r5   rT   s   &$r/   Ú
disconnectÚVoiceProtocol.disconnect£   s   é € ô "Ð!ùrB   c               ó   € V ^8„  d   QhRR/# ©r(   r+   r,   r-   )r.   s   "r/   r0   r1   ±   s   € ÷ =ñ =˜ñ =r2   c                óˆ   € V P                   P                  4       w  rV P                  P                  P	                  V4       R# )aŒ  This method *must* be called to ensure proper clean-up during a disconnect.

It is advisable to call this from within :meth:`disconnect` when you are
completely done with the voice protocol instance.

This method removes it from the internal state cache that keeps track of
currently alive voice clients. Failure to clean-up will cause subsequent
connections to report that it's still connected.
N)r*   Ú_get_voice_client_keyr)   Ú_connectionÚ_remove_voice_client)r5   Úkey_idÚ_s   &  r/   ÚcleanupÚVoiceProtocol.cleanup±   s0   € ð —L‘L×6Ñ6Ó8‰	ˆØ�‰×Ñ×4Ñ4°VÖ<r2   )r*   r)   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r6   r@   rG   rP   rW   ra   Ú__static_attributes__r-   r2   r/   r#   r#   M   s:   † ñõ(0õ"õ""ð"ÐRWð "Ðkp÷ "õ>"÷=ñ =r2   c                  ó  a € ] tR t^¿t$ RtR]R&   R V 3R llt]'       * tR]R&   ]	'       * t
R]R&   RhtR	]R
&   ]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R  l4       tR! R" ltR# R$ ltR% R& ltR' R( ltR)R*R+R*/R, R- lltRiR/ R0 llt]R1 R2 l4       t]R3 R4 l4       tR5R*/R6 R7 llt R8R./R9 R: llt!R; R< lt"R= R> lt#R? R@ lt$RA RB lt%RC RD lt&RE RF lt'RGRHRIRJRK^€RLRMRNRORPRQRRRS/RT RU llt(RV RW lt)RX RY lt*RZ R[ lt+R\ R] lt,R^ R_ lt-]R` Ra l4       t.].P^                  Rb Rc l4       t.RdRM/Re Rf llt0Rgt1V ;t2# )jr$   aÑ  Represents a Discord voice connection.

You do not create these, you typically get them from
e.g. :meth:`VoiceChannel.connect`.

Warning
--------
In order to use PCM based AudioSources, you must have the opus library
installed on your system and loaded through :func:`opus.load_opus`.
Otherwise, your AudioSources must be opus encoded (e.g. using :class:`FFmpegOpusAudio`)
or the library will not be able to transmit audio.

Attributes
-----------
session_id: :class:`str`
    The voice connection session ID.
token: :class:`str`
    The voice connection token.
endpoint: :class:`str`
    The endpoint we are connecting to.
channel: Union[:class:`VoiceChannel`, :class:`StageChannel`]
    The voice channel connected to.
ÚVocalGuildChannelr*   c               ó$   € V ^8„  d   QhRRRRRR/# r'   r-   )r.   s   "r/   r0   ÚVoiceClient.__annotate__Ú   s&   € ÷ Pñ P˜vð P°ð PÀDñ Pr2   c                	ól  <€ \         '       g   \        R 4      h\        '       g   \        R4      h\        SV `  W4       VP
                  p\        V n        \        V n        VP                  V n	        W0n
        ^ V n        ^ V n        RV n        \        V n        ^ V n        V P!                  4       V n        R# )z+PyNaCl library needed in order to use voicez*davey library needed in order to use voiceN)r"   ÚRuntimeErrorr   Úsuperr6   r]   r   Ú	server_idÚsocketÚloopÚ_stateÚsequenceÚ	timestampÚ_playerÚencoderÚ_incr_nonceÚcreate_connection_state)r5   r)   r*   ÚstateÚ	__class__s   &&& €r/   r6   ÚVoiceClient.__init__Ú   s�   ø€ ß‹xÜÐLÓMÐMß‹xÜÐKÓLÐLä‰Ñ˜Ô)Ø×"Ñ"ˆÜ%ˆŒÜˆŒØ/4¯z©zˆŒ	Ø',ŒàˆŒØˆŒØ.2ˆŒÜ 'ˆŒØ !ˆÔà15×1MÑ1MÓ1OˆÖr2   r!   Ú	warn_naclÚ	warn_davezTuple[SupportedModes, ...]Úsupported_modesc               ó   € V ^8„  d   QhRR/# )r(   r+   r   r-   )r.   s   "r/   r0   rl   ù   s   € ÷ "ñ "�uñ "r2   c                ó.   € V P                   P                  # )z-:class:`Guild`: The guild we're connected to.)r*   Úguild©r5   s   &r/   r‚   ÚVoiceClient.guildø   s   € ð �|‰|×!Ñ!Ð!r2   c               ó   € V ^8„  d   QhRR/# )r(   r+   r   r-   )r.   s   "r/   r0   rl   þ   s   € ÷  ñ  �jñ  r2   c                ó.   € V P                   P                  # )zB:class:`ClientUser`: The user connected to voice (i.e. ourselves).)rs   Úuserrƒ   s   &r/   r‡   ÚVoiceClient.userý   s   € ð �{‰{×ÑÐr2   c               ó   € V ^8„  d   QhRR/# ©r(   r+   zOptional[str]r-   )r.   s   "r/   r0   rl     s   € ÷ +ñ +˜Mñ +r2   c                	ó.   € V P                   P                  # r4   )r]   Ú
session_idrƒ   s   &r/   rŒ   ÚVoiceClient.session_id  ó   € à×Ñ×*Ñ*Ð*r2   c               ó   € V ^8„  d   QhRR/# rŠ   r-   )r.   s   "r/   r0   rl     s   € ÷ &ñ &�}ñ &r2   c                	ó.   € V P                   P                  # r4   )r]   Útokenrƒ   s   &r/   r‘   ÚVoiceClient.token  s   € à×Ñ×%Ñ%Ð%r2   c               ó   € V ^8„  d   QhRR/# rŠ   r-   )r.   s   "r/   r0   rl     s   € ÷ )ñ )˜-ñ )r2   c                	ó.   € V P                   P                  # r4   )r]   Úendpointrƒ   s   &r/   r•   ÚVoiceClient.endpoint
  s   € à×Ñ×(Ñ(Ð(r2   c               ó   € V ^8„  d   QhRR/# )r(   r+   Úintr-   )r.   s   "r/   r0   rl     s   € ÷ %ñ %�cñ %r2   c                	ó.   € V P                   P                  # r4   )r]   Ússrcrƒ   s   &r/   rš   ÚVoiceClient.ssrc  ó   € à×Ñ×$Ñ$Ð$r2   c               ó   € V ^8„  d   QhRR/# )r(   r+   r    r-   )r.   s   "r/   r0   rl     s   € ÷ %ñ %�nñ %r2   c                	ó.   € V P                   P                  # r4   )r]   Úmoderƒ   s   &r/   rŸ   ÚVoiceClient.mode  rœ   r2   c               ó   € V ^8„  d   QhRR/# )r(   r+   z	List[int]r-   )r.   s   "r/   r0   rl     s   € ÷ +ñ +˜Iñ +r2   c                	ó.   € V P                   P                  # r4   )r]   Ú
secret_keyrƒ   s   &r/   r£   ÚVoiceClient.secret_key  rŽ   r2   c               ó   € V ^8„  d   QhRR/# )r(   r+   r   r-   )r.   s   "r/   r0   rl     s   € ÷ #ñ #Ð)ñ #r2   c                	ó.   € V P                   P                  # r4   )r]   Úwsrƒ   s   &r/   r§   ÚVoiceClient.ws  s   € à×Ñ×"Ñ"Ð"r2   c               ó   € V ^8„  d   QhRR/# ©r(   r+   rM   r-   )r.   s   "r/   r0   rl     s   € ÷ (ñ (˜ñ (r2   c                	ó.   € V P                   P                  # r4   )r]   rL   rƒ   s   &r/   rL   ÚVoiceClient.timeout  s   € à×Ñ×'Ñ'Ð'r2   c               ó   € V ^8„  d   QhRR/# rŠ   r-   )r.   s   "r/   r0   rl   #  s   € ÷ kñ k Mñ kr2   c                ó~   € V P                   P                  '       d!   V P                   P                  P                  # R# )zï:class:`str`: Get the voice privacy code of this E2EE session's group.

A new privacy code is created and cached each time a new transition is executed.
This can be None if there is no active DAVE session happening.

.. versionadded:: 2.7
N)r]   Údave_sessionÚvoice_privacy_coderƒ   s   &r/   r°   ÚVoiceClient.voice_privacy_code"  s5   € ð DH×CSÑCS×C`×C`ÐC`ˆt×Ñ×,Ñ,×?Ñ?ÐjÐfjÐjr2   c               ó(   € V ^8„  d   QhRRRRRRRR/# )r(   ÚattrÚstrÚvaluer˜   Úlimitr+   r,   r-   )r.   s   "r/   r0   rl   -  s(   € ÷ -ñ - ð -¨Cð -¸ð -Àñ -r2   c                	óv   € \        W4      pWB,           V8”  d   \        W^ 4       R# \        WWB,           4       R# )é    N)ÚgetattrÚsetattr)r5   r³   rµ   r¶   Úvals   &&&& r/   Úchecked_addÚVoiceClient.checked_add-  s,   € Ü�dÓ!ˆØ�;˜ÔÜ�D Ö"ä�D ¥Ö,r2   c               ó   € V ^8„  d   QhRR/# )r(   r+   r   r-   )r.   s   "r/   r0   rl   6  s   € ÷ *ñ *Ð)=ñ *r2   c                	ó   € \        V 4      # r4   )r   rƒ   s   &r/   ry   Ú#VoiceClient.create_connection_state6  s   € Ü# DÓ)Ð)r2   c               ó    € V ^8„  d   QhRRRR/# r9   r-   )r.   s   "r/   r0   rl   9  s   € ÷ 8ñ 8Ð0Fð 8È4ñ 8r2   c              ƒ  	óX   "  € V P                   P                  V4      G R j  x€L
  R #  L5ir4   )r]   Úvoice_state_updater?   s   &&r/   r@   Ú!VoiceClient.on_voice_state_update9  s   é € Ø×Ñ×1Ñ1°$Ó7×7Ô7ùó   ‚*¡(¢*c               ó    € V ^8„  d   QhRRRR/# rD   r-   )r.   s   "r/   r0   rl   <  s   € ÷ 9ñ 9Ð1Ið 9Èdñ 9r2   c              ƒ  	óX   "  € V P                   P                  V4      G R j  x€L
  R #  L5ir4   )r]   Úvoice_server_updater?   s   &&r/   rG   Ú"VoiceClient.on_voice_server_update<  s   é € Ø×Ñ×2Ñ2°4Ó8×8Ô8ùrÅ   rI   FrJ   c          
     ó,   € V ^8„  d   QhRRRRRRRRRR/# )	r(   rN   r!   rL   rM   rI   rJ   r+   r,   r-   )r.   s   "r/   r0   rl   ?  s1   € ÷ 
ñ 
¨$ð 
¸ð 
È4ð 
Ðdhð 
Ðuyñ 
r2   c             ƒ  	ó^   "  € V P                   P                  WW4R R7      G Rj  x€L
  R#  L5i)F)rN   rL   rI   rJ   ÚresumeN)r]   rP   )r5   rN   rL   rI   rJ   s   &$$$$r/   rP   ÚVoiceClient.connect?  s0   é € Ø×Ñ×&Ñ&Ø¸IÐchð 'ó 
÷ 	
ô 	
ùs   ‚"-¤+¥-ç      >@c               ó    € V ^8„  d   QhRRRR/# )r(   rL   úOptional[float]r+   r!   r-   )r.   s   "r/   r0   rl   D  s   € ÷ /ñ /¨Oð /Àtñ /r2   c                	ól   € V P                   P                  V4       V P                   P                  4       # r4   )r]   ÚwaitÚis_connected)r5   rL   s   &&r/   Úwait_until_connectedÚ VoiceClient.wait_until_connectedD  s+   € Ø×Ñ×Ñ˜gÔ&Ø×Ñ×,Ñ,Ó.Ð.r2   c               ó   € V ^8„  d   QhRR/# rª   r-   )r.   s   "r/   r0   rl   I  s   € ÷ 	6ñ 	6˜ñ 	6r2   c                ól   € V P                   P                  pV'       g   \        R4      # VP                  # )zñ:class:`float`: Latency between a HEARTBEAT and a HEARTBEAT_ACK in seconds.

This could be referred to as the Discord Voice WebSocket latency and is
an analogue of user's voice latencies as seen in the Discord client.

.. versionadded:: 1.4
Úinf)r]   r§   rM   Úlatency©r5   r§   s   & r/   rÙ   ÚVoiceClient.latencyH  s*   € ð ×Ñ× Ñ ˆß#%Œu�U‹|Ð5¨2¯:©:Ð5r2   c               ó   € V ^8„  d   QhRR/# rª   r-   )r.   s   "r/   r0   rl   U  s   € ÷ >ñ > ñ >r2   c                ól   € V P                   P                  pV'       g   \        R4      # VP                  # )za:class:`float`: Average of most recent 20 HEARTBEAT latencies in seconds.

.. versionadded:: 1.4
rØ   )r]   r§   rM   Úaverage_latencyrÚ   s   & r/   rÞ   ÚVoiceClient.average_latencyT  s,   € ð ×Ñ× Ñ ˆß#%Œu�U‹|Ð=¨2×+=Ñ+=Ð=r2   rT   c               ó    € V ^8„  d   QhRRRR/# rS   r-   )r.   s   "r/   r0   rl   ]  s   € ÷ ñ ¨ð ¸$ñ r2   c             ƒ  óœ   "  € V P                  4        V P                  P                  VRR7      G Rj  x€L
  V P                  4        R#  L5i)z2|coro|

Disconnects this voice client from voice.
T)rT   rÒ   N)Ústopr]   rW   ra   rV   s   &$r/   rW   ÚVoiceClient.disconnect]  s>   é € ð
 	�	‰	ŒØ×Ñ×)Ñ)°¸DÐ)ÓA×AÐAØ�‰Žñ 	Bùs   ‚1A³A
´ArL   c               ó$   € V ^8„  d   QhRRRRRR/# )r(   r*   zOptional[abc.Snowflake]rL   rÐ   r+   r,   r-   )r.   s   "r/   r0   rl   f  s#   € ÷ 9ñ 9Ð%<ð 9È/ð 9Ðeiñ 9r2   c             ƒ  óX   "  € V P                   P                  W4      G Rj  x€L
  R#  L5i)ay  |coro|

Moves you to a different voice channel.

Parameters
-----------
channel: Optional[:class:`abc.Snowflake`]
    The channel to move to. Must be a voice channel.
timeout: Optional[:class:`float`]
    How long to wait for the move to complete.

    .. versionadded:: 2.4

Raises
-------
asyncio.TimeoutError
    The move did not complete in time, but may still be ongoing.
N)r]   Úmove_to)r5   r*   rL   s   &&$r/   ræ   ÚVoiceClient.move_tof  s!   é € ð& ×Ñ×&Ñ& wÓ8×8Ô8ùrÅ   c               ó   € V ^8„  d   QhRR/# ©r(   r+   r!   r-   )r.   s   "r/   r0   rl   {  s   € ÷ /ñ /˜dñ /r2   c                ó6   € V P                   P                  4       # )z4Indicates if the voice client is connected to voice.)r]   rÓ   rƒ   s   &r/   rÓ   ÚVoiceClient.is_connected{  s   € à×Ñ×,Ñ,Ó.Ð.r2   c               ó   € V ^8„  d   QhRR/# )r(   r:   Úbytesr-   )r.   s   "r/   r0   rl   �  s   € ÷ .ñ . eñ .r2   c                	ó  € V P                   P                  '       dB   V P                   P                  '       d&   V P                   P                  P                  V4      MTp\	        ^4      p^€V^ &   ^xV^&   \
        P                  ! RV^V P                  4       \
        P                  ! RV^V P                  4       \
        P                  ! RV^V P                  4       \        V RV P                  ,           4      pV! W24      # )é   z>Hú>IÚ	_encrypt_)r]   r¯   Úcan_encryptÚencrypt_opusÚ	bytearrayÚstructÚ	pack_intort   ru   rš   r¹   rŸ   )r5   r:   ÚpacketÚheaderÚencrypt_packets   &&   r/   Ú_get_voice_packetÚVoiceClient._get_voice_packet�  sÒ   € ð ×Ñ×,×,Ð,°×1AÑ1A×1M×1MÐ1Mð ×Ñ×)Ñ)×6Ñ6°tÔ<àð 	ô
 ˜2“ˆð ˆˆq‰	Øˆˆq‰	Ü×Ò˜˜v q¨$¯-©-Ô8Ü×Ò˜˜v q¨$¯.©.Ô9Ü×Ò˜˜v q¨$¯)©)Ô4ä   {°T·Y±YÕ'>Ó?ˆÙ˜fÓ-Ð-r2   c               ó    € V ^8„  d   QhRRRR/# ©r(   rø   rí   r+   r-   )r.   s   "r/   r0   rl   “  s   € ÷ 
eñ 
e¸uð 
eÈuñ 
er2   c                	ó‚  € \         P                  P                  \        V P                  4      4      p\        ^4      p\        P                  ! RV P                  4      VR&   V P                  R^R4       WP                  \        V4      \        V4      \        V4      4      P                  ,           VR,          ,           # ©é   rð   :Né   Nrx   ì   ÿÿ )ÚnaclÚsecretÚAeadrí   r£   rô   rõ   Úpackrx   r¼   ÚencryptÚ
ciphertext©r5   rø   r:   ÚboxÚnonces   &&&  r/   Ú(_encrypt_aead_xchacha20_poly1305_rtpsizeÚ4VoiceClient._encrypt_aead_xchacha20_poly1305_rtpsize“  sŠ   € ô �k‰k×Ñœu T§_¡_Ó5Ó6ˆÜ˜"“ˆä—K’K  d×&6Ñ&6Ó7ˆˆb‰	Ø×Ñ˜¨¨:Ô6àŸ™¤E¨$£K´°v³ÄÀeÃÓM×XÑXÕXÐ[`ÐacÕ[dÕdÐdr2   c               ó    € V ^8„  d   QhRRRR/# rý   r-   )r.   s   "r/   r0   rl   Ÿ  s   € ÷ Jñ J°ð JÀñ Jr2   c                	óì   € \         P                  P                  \        V P                  4      4      p\        ^4      pWR&   WP                  \        V4      \        V4      4      P                  ,           # )r   :Nrï   N)r  r  Ú	SecretBoxrí   r£   rô   r  r  r	  s   &&&  r/   Ú_encrypt_xsalsa20_poly1305Ú&VoiceClient._encrypt_xsalsa20_poly1305Ÿ  sS   € ô �k‰k×#Ñ#¤E¨$¯/©/Ó$:Ó;ˆÜ˜"“ˆØˆc‰
àŸ™¤E¨$£K´°u³Ó>×IÑIÕIÐIr2   c               ó    € V ^8„  d   QhRRRR/# rý   r-   )r.   s   "r/   r0   rl   ¨  s   € ÷ Kñ K¸ð KÈñ Kr2   c                	óL  € \         P                  P                  \        V P                  4      4      p\         P
                  P                  \         P                  P                  P                  4      pWP                  \        V4      V4      P                  ,           V,           # r4   )
r  r  r  rí   r£   ÚutilsÚrandomÚ
NONCE_SIZEr  r  r	  s   &&&  r/   Ú!_encrypt_xsalsa20_poly1305_suffixÚ-VoiceClient._encrypt_xsalsa20_poly1305_suffix¨  sh   € ô �k‰k×#Ñ#¤E¨$¯/©/Ó$:Ó;ˆÜ—
‘
×!Ñ!¤$§+¡+×"7Ñ"7×"BÑ"BÓCˆàŸ™¤E¨$£K°Ó7×BÑBÕBÀUÕJÐJr2   c               ó    € V ^8„  d   QhRRRR/# rý   r-   )r.   s   "r/   r0   rl   °  s   € ÷ 	Vñ 	V°eð 	VÀeñ 	Vr2   c                	ón  € \         P                  P                  \        V P                  4      4      p\        ^4      p\        P                  ! RV P                  4      VR&   V P                  R^R4       WP                  \        V4      \        V4      4      P                  ,           VR,          ,           # rÿ   )r  r  r  rí   r£   rô   rõ   r  rx   r¼   r  r  r	  s   &&&  r/   Ú_encrypt_xsalsa20_poly1305_liteÚ+VoiceClient._encrypt_xsalsa20_poly1305_lite°  s‚   € ô �k‰k×#Ñ#¤E¨$¯/©/Ó$:Ó;ˆÜ˜"“ˆä—K’K  d×&6Ñ&6Ó7ˆˆb‰	Ø×Ñ˜¨¨:Ô6àŸ™¤E¨$£K´°u³Ó>×IÑIÕIÈEÐRTÍIÕUÐUr2   ÚafterNÚapplicationÚaudioÚbitrateÚfecTÚexpected_packet_lossg333333Ã?Ú	bandwidthÚfullÚsignal_typeÚautoc               ó<   € V ^8„  d   QhRRRRRRRRR	R
RRRRRRRR/	# )r(   Úsourcer   r  z.Optional[Callable[[Optional[Exception]], Any]]r  r   r!  r˜   r"  r!   r#  rM   r$  r   r&  r   r+   r,   r-   )r.   s   "r/   r0   rl   »  so   € ÷ \ñ \àð\ð >ð	\ð
 %ð\ð ð\ð ð\ð $ð\ð ð\ð  ð\ð 
ñ\r2   c          	     óÀ  € V P                  4       '       g   \        R4      hV P                  4       '       d   \        R4      h\        V\        4      '       g#   \        RVP                  P                   24      hVP                  4       '       g"   \        P                  ! VVVVVVR7      V n        \        WVR7      V n        V P                  P                  4        R# )ak  Plays an :class:`AudioSource`.

The finalizer, ``after`` is called after the source has been exhausted
or an error occurred.

If an error happens while the audio player is running, the exception is
caught and the audio player is then stopped.  If no after callback is
passed, any caught exception will be logged using the library logger.

Extra parameters may be passed to the internal opus encoder if a PCM based
source is used.  Otherwise, they are ignored.

.. versionchanged:: 2.0
    Instead of writing to ``sys.stderr``, the library's logger is used.

.. versionchanged:: 2.4
    Added encoder parameters as keyword arguments.

Parameters
-----------
source: :class:`AudioSource`
    The audio source we're reading from.
after: Callable[[Optional[:class:`Exception`]], Any]
    The finalizer that is called after the stream is exhausted.
    This function must have a single parameter, ``error``, that
    denotes an optional exception that was raised during playing.
application: :class:`str`
    Configures the encoder's intended application.  Can be one of:
    ``'audio'``, ``'voip'``, ``'lowdelay'``.
    Defaults to ``'audio'``.
bitrate: :class:`int`
    Configures the bitrate in the encoder.  Can be between ``16`` and ``512``.
    Defaults to ``128``.
fec: :class:`bool`
    Configures the encoder's use of inband forward error correction.
    Defaults to ``True``.
expected_packet_loss: :class:`float`
    Configures the encoder's expected packet loss percentage.  Requires FEC.
    Defaults to ``0.15``.
bandwidth: :class:`str`
    Configures the encoder's bandpass.  Can be one of:
    ``'narrow'``, ``'medium'``, ``'wide'``, ``'superwide'``, ``'full'``.
    Defaults to ``'full'``.
signal_type: :class:`str`
    Configures the type of signal being encoded.  Can be one of:
    ``'auto'``, ``'voice'``, ``'music'``.
    Defaults to ``'auto'``.

Raises
-------
ClientException
    Already playing audio or not connected.
TypeError
    Source is not a :class:`AudioSource` or after is not a callable.
OpusNotLoaded
    Source is not opus encoded and opus is not loaded.
ValueError
    An improper value was passed as an encoder parameter.
zNot connected to voice.zAlready playing audio.z"source must be an AudioSource not )r  r!  r"  r#  r$  r&  )r  N)rÓ   r   Ú
is_playingÚ
isinstancer   Ú	TypeErrorr{   rc   Úis_opusr
   r   rw   r   rv   Ústart)	r5   r)  r  r  r!  r"  r#  r$  r&  s	   &&$$$$$$$r/   ÚplayÚVoiceClient.play»  sµ   € ðP × Ñ ×"Ò"Ü!Ð";Ó<Ð<à�?‰?×ÒÜ!Ð":Ó;Ð;ä˜&¤+×.Ò.ÜÐ@À×AQÑAQ×AZÑAZÐ@[Ð\Ó]Ð]à�~‰~×ÒÜŸ<š<Ø'ØØØ%9Ø#Ø'ôˆDŒLô # 6°uÔ=ˆŒØ�‰×ÑÖr2   c               ó   € V ^8„  d   QhRR/# ré   r-   )r.   s   "r/   r0   rl     s   € ÷ Fñ F˜Dñ Fr2   c                ób   € V P                   RJ;'       d    V P                   P                  4       # )z+Indicates if we're currently playing audio.N)rv   r+  rƒ   s   &r/   r+  ÚVoiceClient.is_playing  s&   € à�|‰| 4Ð'×EÐE¨D¯L©L×,CÑ,CÓ,EÐEr2   c               ó   € V ^8„  d   QhRR/# ré   r-   )r.   s   "r/   r0   rl     s   € ÷ Eñ E˜4ñ Er2   c                ób   € V P                   RJ;'       d    V P                   P                  4       # )z6Indicates if we're playing audio, but if we're paused.N)rv   Ú	is_pausedrƒ   s   &r/   r7  ÚVoiceClient.is_paused  s&   € à�|‰| 4Ð'×DÐD¨D¯L©L×,BÑ,BÓ,DÐDr2   c               ó   € V ^8„  d   QhRR/# rZ   r-   )r.   s   "r/   r0   rl   !  s   € ÷  ñ  �dñ  r2   c                óp   € V P                   '       d$   V P                   P                  4        RV n         R# R# )zStops playing audio.N)rv   râ   rƒ   s   &r/   râ   ÚVoiceClient.stop!  s'   € à�<�<ˆ<Ø�L‰L×ÑÔØˆDŽLñ r2   c               ó   € V ^8„  d   QhRR/# rZ   r-   )r.   s   "r/   r0   rl   '  s   € ÷ !ñ !�tñ !r2   c                ób   € V P                   '       d   V P                   P                  4        R# R# )zPauses the audio playing.N)rv   Úpauserƒ   s   &r/   r>  ÚVoiceClient.pause'  s    € à�<�<ˆ<Ø�L‰L×ÑÖ ñ r2   c               ó   € V ^8„  d   QhRR/# rZ   r-   )r.   s   "r/   r0   rl   ,  s   € ÷ "ñ "˜ñ "r2   c                ób   € V P                   '       d   V P                   P                  4        R# R# )zResumes the audio playing.N)rv   rÌ   rƒ   s   &r/   rÌ   ÚVoiceClient.resume,  s    € à�<�<ˆ<Ø�L‰L×ÑÖ!ñ r2   c               ó   € V ^8„  d   QhRR/# )r(   r+   zOptional[AudioSource]r-   )r.   s   "r/   r0   rl   2  s   € ÷ =ñ =Ð-ñ =r2   c                óV   € V P                   '       d   V P                   P                  # R# )zžOptional[:class:`AudioSource`]: The audio source being played, if playing.

This property can also be used to change the audio source currently being played.
N)rv   r)  rƒ   s   &r/   r)  ÚVoiceClient.source1  s!   € ð '+§l§l lˆt�|‰|×"Ñ"Ð<¸Ð<r2   c               ó    € V ^8„  d   QhRRRR/# )r(   rµ   r   r+   r,   r-   )r.   s   "r/   r0   rl   :  s   € ÷ 'ñ '˜Kð '¨Dñ 'r2   c                	óà   € \        V\        4      '       g$   \        R VP                  P                   R24      hV P
                  f   \        R4      hV P
                  P                  V4       R# )zexpected AudioSource not Ú.NzNot playing anything.)r,  r   r-  r{   rc   rv   Ú
ValueErrorÚ
set_source)r5   rµ   s   &&r/   r)  rE  9  sX   € ä˜%¤×-Ò-ÜÐ7¸¿¹×8PÑ8PÐ7QÐQRÐSÓTÐTà�<‰<ÒÜÐ4Ó5Ð5à�‰×Ñ Ö&r2   Úencodec               ó$   € V ^8„  d   QhRRRRRR/# )r(   r:   rí   rK  r!   r+   r,   r-   )r.   s   "r/   r0   rl   C  s&   € ÷ Rñ R eð R¸ð RÈñ Rr2   c               óÈ  € V P                  R^R4       V'       d1   V P                  P                  WP                  P                  4      pMTpV P	                  V4      p V P
                  P                  V4       V P                  R\        P                  P                  R4       R#   \         d/    \        P                  RT P                  T P                  4        Lei ; i)ay  Sends an audio packet composed of the data.

You must be connected to play audio.

Parameters
----------
data: :class:`bytes`
    The :term:`py:bytes-like object` denoting PCM or Opus voice data.
encode: :class:`bool`
    Indicates if ``data`` should be encoded into Opus.

Raises
-------
ClientException
    You are not connected.
opus.OpusError
    Encoding the data failed.
rt   iÿÿ  z2A packet has been dropped (seq: %s, timestamp: %s)ru   r  N)r¼   rw   rK  ÚSAMPLES_PER_FRAMErú   r]   Úsend_packetÚOSErrorÚ_logÚdebugrt   ru   r
   r   )r5   r:   rK  Úencoded_datar÷   s   &&$  r/   Úsend_audio_packetÚVoiceClient.send_audio_packetC  s³   € ð( 	×Ñ˜ Q¨Ô.ßØŸ<™<×.Ñ.¨t·\±\×5SÑ5SÓT‰LàˆLØ×'Ñ'¨Ó5ˆð	lØ×Ñ×(Ñ(¨Ô0ð 	×Ñ˜¤d§l¡l×&DÑ&DÀjÖQøô ô 	lÜ�J‰JÐKÈTÏ]É]Ð\`×\jÑ\jÖkð	lús   Á B( Â(6C!Ã C!)
r]   rx   rv   rs   rw   rr   rt   rp   rq   ru   )Úaead_xchacha20_poly1305_rtpsizeÚxsalsa20_poly1305_liteÚxsalsa20_poly1305_suffixÚxsalsa20_poly1305)rÎ   )3rc   rd   re   rf   rg   Ú__annotations__r6   r"   r}   r   r~   r   Úpropertyr‚   r‡   rŒ   r‘   r•   rš   rŸ   r£   r§   rL   r°   r¼   ry   r@   rG   rP   rÔ   rÙ   rÞ   rW   ræ   rÓ   rú   r  r  r  r  r0  r+  r7  râ   r>  rÌ   r)  ÚsetterrT  rh   Ú__classcell__)r{   s   @r/   r$   r$   ¿   se  ø‡ ñð0 Ó÷Pð Pð* #”l€IˆtÓ"Ø"”l€IˆtÓ"ð3€OÐ/ó ð ô"ó ð"ð ô ó ð ð ô+ó ð+ð ô&ó ð&ð ô)ó ð)ð ô%ó ð%ð ô%ó ð%ð ô+ó ð+ð ô#ó ð#ð ô(ó ð(ð ôkó ðkõ-õ*õ8õ9ð
ÐRWð 
Ðkp÷ 
÷
/ð ô	6ó ð	6ð ô>ó ð>ð°÷ ð9Ð\`÷ 9õ*/õ.õ$
eõJõKõ	Vð\ð AEð	\ð
 (/ð\ð ð\ð ð\ð '+ð\ð %ð\ð #)÷\õ|FõEõ õ!õ
"ð
 ô=ó ð=ð ‡]�]ô'ó ð'ðR¸t÷ Rõ Rr2   )r#   r$   )@Ú__conditional_annotations__rg   Ú
__future__r   ÚasyncioÚloggingrõ   Útypingr   r   r   r   r   r   r	   Ú r
   ÚgatewayÚerrorsr   Úplayerr   r   r  r   Úvoice_stater   r   r   r)   r   r‚   r   rz   r   r‡   r   r   r   r   r   r*   r   r   r   Útypes.voicer   r;   r   rE   r    rj   rZ  Únacl.secretr  Ú
nacl.utilsr"   ÚImportErrorÚ__all__Ú	getLoggerrc   rQ  r#   r$   )r^  s   @r/   Ú<module>rn     sÒ   øðôõ0 #ã Û Û ß M× MÑ Må Ü Ý #ß ,Ý ß 7çÝ.ÝÝÝ&Ý ßDÓDß3Ý÷ñ ð ˜l¨LÐ8Õ9Ðð ƒðÛÛà€Hð€ð ×Ò˜Ó"€÷o=ñ o=ôdcR�-ö cRøð} ô Ø‚Hðús   Â-
C" Ã"	C.Ã-C.