+
    rpÐj}  ã                  óD  a € 0 t $ R t^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
^ RIt^ RI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HtHt ^RIHt ^RIHtHt ^RIH t!H"t" ^RI#H$t$ ^RI%H&t& ]'       d   ^ R	I'H(t( ^R
I)H*t* ]! RRR7      t+]	PX                  ! ]-4      t.Rt/R]0R&   ]Pb                  R8w  d   ^ t2MRt2 ! R R4      t3 ! R R]34      t4 ! R R]34      t5 ! R R]54      t6 ! R R]54      t7 ! R R]3]]+,          4      t8 ! R R]Pr                  4      t:R# ) 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ÚGenericÚIOÚOptionalÚTYPE_CHECKINGÚTupleÚTypeVarÚUnion)ÚSpeakingState)ÚClientExceptionÚFFmpegProcessError)ÚEncoderÚOPUS_SILENCE)Ú	OggStream)ÚMISSING)ÚSelf)ÚVoiceClientÚATÚAudioSource)ÚboundÚPCMAudioÚFFmpegAudioÚFFmpegPCMAudioÚFFmpegOpusAudioÚPCMVolumeTransformerÚintÚCREATE_NO_WINDOWÚwin32i   c                  óJ   € ] tR t^KtRtR R ltR R ltR R ltR R	 ltR
t	R# )r   zúRepresents an audio stream.

The audio stream can be Opus encoded or not, however if the audio stream
is not Opus encoded then the audio format must be 16-bit 48KHz stereo PCM.

.. warning::

    The audio source reads are done in a separate thread.
c               ó   € V ^8„  d   QhRR/# ©é   ÚreturnÚbytes© )Úformats   "Ú@/opt/hermes/.venv/lib/python3.14/site-packages/discord/player.pyÚ__annotate__ÚAudioSource.__annotate__V   s   € ÷ "ñ "�eñ "ó    c                ó   € \         h)aø  Reads 20ms worth of audio.

Subclasses must implement this.

If the audio is complete, then returning an empty
:term:`py:bytes-like object` to signal this is the way to do so.

If :meth:`~AudioSource.is_opus` method returns ``True``, then it must return
20ms worth of Opus encoded audio. Otherwise, it must be 20ms
worth of 16-bit 48KHz stereo PCM, which is about 3,840 bytes
per frame (20ms worth of audio).

Returns
--------
:class:`bytes`
    A bytes like object that represents the PCM or Opus data.
)ÚNotImplementedError©Úselfs   &r(   ÚreadÚAudioSource.readV   s
   € ô$ "Ð!r+   c               ó   € V ^8„  d   QhRR/# ©r#   r$   Úboolr&   )r'   s   "r(   r)   r*   j   s   € ÷ ñ ˜ñ r+   c                ó   € R# )z6Checks if the audio source is already encoded in Opus.Fr&   r.   s   &r(   Úis_opusÚAudioSource.is_opusj   s   € ár+   c               ó   € V ^8„  d   QhRR/# ©r#   r$   ÚNoner&   )r'   s   "r(   r)   r*   n   s   € ÷ ñ ˜ñ r+   c                ó   € R# )zyCalled when clean-up is needed to be done.

Useful for clearing buffer data or processes after
it is done playing audio.
Nr&   r.   s   &r(   ÚcleanupÚAudioSource.cleanupn   s   € ñ 	r+   c               ó   € V ^8„  d   QhRR/# r9   r&   )r'   s   "r(   r)   r*   v   s   € ÷ ñ ˜ñ r+   c                	ó&   € V P                  4        R # ©N)r<   r.   s   &r(   Ú__del__ÚAudioSource.__del__v   s   € Ø�‰Žr+   r&   N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r0   r6   r<   rA   Ú__static_attributes__r&   r+   r(   r   r   K   s    † ñõ"õ(õ÷ñ r+   c                  ó2   € ] tR t^ztRtR R ltR R ltRtR# )r   z®Represents raw 16-bit 48KHz stereo PCM audio source.

Attributes
-----------
stream: :term:`py:file object`
    A file-like object that reads byte data representing raw PCM.
c               ó    € V ^8„  d   QhRRRR/# )r#   Ústreamúio.BufferedIOBaser$   r:   r&   )r'   s   "r(   r)   ÚPCMAudio.__annotate__ƒ   s   € ÷ 0ñ 0Ð0ð 0°Tñ 0r+   c                	ó   € Wn         R # r@   ©rK   )r/   rK   s   &&r(   Ú__init__ÚPCMAudio.__init__ƒ   s   € Ø)/Žr+   c               ó   € V ^8„  d   QhRR/# r"   r&   )r'   s   "r(   r)   rM   †   s   € ÷ ñ �eñ r+   c                	ó˜   € V P                   P                  \        P                  4      p\	        V4      \        P                  8w  d   R # V# ©r+   )rK   r0   ÚOpusEncoderÚ
FRAME_SIZEÚlen©r/   Úrets   & r(   r0   ÚPCMAudio.read†   s6   € Ø�k‰k×Ñœ{×5Ñ5Ó6ˆÜˆs‹8”{×-Ñ-Ô-ÙØˆ
r+   rO   N)rC   rD   rE   rF   rG   rP   r0   rH   r&   r+   r(   r   r   z   s   † ñõ0÷ñ r+   c                  óš   € ] tR t^�t$ Rt]P                  tR]R&   RR/R R llt	R R	 lt
R
 R ltR R ltR R ltR R ltR R ltRtR# )r   zØRepresents an FFmpeg (or AVConv) based AudioSource.

User created AudioSources using FFmpeg differently from how :class:`FFmpegPCMAudio` and
:class:`FFmpegOpusAudio` work should subclass this.

.. versionadded:: 1.3
r   Ú	BLOCKSIZEÚ
executableÚffmpegc               ó(   € V ^8„  d   QhRRRRRRRR/# )r#   ÚsourceúUnion[str, io.BufferedIOBase]r]   ÚstrÚargsr   Úsubprocess_kwargsr&   )r'   s   "r(   r)   ÚFFmpegAudio.__annotate__˜   s2   € ÷ 2-ñ 2-à-ð2-ð ð	2-ð
 ð2-ð !ñ2-r+   c               	óÖ  € VP                  R 4      \        P                  8H  pV'       d"   \        V\        4      '       d   \        R4      hVP                  RR4      pV\        P                  8X  d    \        P                  ! R\        ^R7       RpRpVe    VP                  4        V.VOpR\        P                  RV'       d   \        P                  MT/pVP                  V4       \        V n        V P                  ! V3/ VB V n        V P                  P                   V n        RV n        RV n        RV n        RV n        RV n        RV n        V'       dy   R	V P                  P0                   2p	V P                  P2                  V n        \4        P6                  ! V P8                  V3RV	R
7      V n        V P(                  P;                  4        V'       d{   RV P                  P0                   2p	V P                  P<                  V n        \4        P6                  ! V P>                  V3RV	R
7      V n        V P*                  P;                  4        R# R#   \         d    Rp EL¾i ; i)ÚstdinzNparameter conflict: 'source' parameter cannot be a string when piping to stdinÚstderrNz$Passing subprocess.PIPE does nothing)Ú
stacklevelFTÚstdoutzpopen-stdin-writer:pid-)Útargetrc   ÚdaemonÚnamezpopen-stderr-reader:pid-) ÚgetÚ
subprocessÚPIPEÚ
isinstancerb   Ú	TypeErrorÚpopÚwarningsÚwarnÚDeprecationWarningÚfilenoÚ	ExceptionÚupdater   Ú_processÚ_spawn_processrj   Ú_stdoutÚ_stdinÚ_stderrÚ_pipe_writer_threadÚ_pipe_reader_threadÚ_current_errorÚ_stoppedÚpidrg   Ú	threadingÚThreadÚ_pipe_writerÚstartrh   Ú_pipe_reader)
r/   r`   r]   rc   rd   Úpiping_stdinrh   Úpiping_stderrÚkwargsÚns
   &&$$,     r(   rP   ÚFFmpegAudio.__init__˜   sû  € ð )×,Ñ,¨WÓ5¼¿¹ÑHˆßœJ v¬s×3Ò3ÜÐlÓmÐmà&7×&;Ñ&;¸HÀdÓ&Kˆà”Z—_‘_Ô$Ü�MŠMÐ@ÔBTÐabÕcØˆFàˆØÒð%Ø—‘”ð Ð"˜TÐ"ˆØœJŸO™O¨XÏ-´z·²Ð]cÐdˆØ�‰Ð'Ô(ô +2ˆŒØ×+Ò+¨DÑ;°FÑ;ˆŒØ"&§-¡-×"6Ñ"6ˆŒØ+/ˆŒØ,0ˆŒØ?CˆÔ Ø?CˆÔ Ø37ˆÔØ#ˆŒçØ)¨$¯-©-×*;Ñ*;Ð)<Ð=ˆAØŸ-™-×-Ñ-ˆDŒKÜ'0×'7Ò'7¸t×?PÑ?PÐX^ÐW`ÐimÐtuÔ'vˆDÔ$Ø×$Ñ$×*Ñ*Ô,çØ*¨4¯=©=×+<Ñ+<Ð*=Ð>ˆAØŸ=™=×/Ñ/ˆDŒLÜ'0×'7Ò'7¸t×?PÑ?PÐX^ÐW`ÐimÐtuÔ'vˆDÔ$Ø×$Ñ$×*Ñ*Ö,ñ	 øô1 ô %Ø $“ð%ús   ÂI ÉI(É'I(c               ó$   € V ^8„  d   QhRRRRRR/# )r#   rc   r   rd   r$   zsubprocess.Popenr&   )r'   s   "r(   r)   re   Ì   s"   € ÷ ñ  3ð ¸Sð ÐEUñ r+   c                	ó   € \         P                  R V4       Rp \        P                  ! V3R\        /VB pV#   \
         dL    \        T\        4      '       d   TP                  R4      ^ ,          MT^ ,          p\        TR,           4      Rh\        P                   d,   p\        RTP                  P                   RT 24      ThRp?ii ; i)z(Spawning ffmpeg process with command: %sNÚcreationflagsÚ z was not found.zPopen failed: z: )Ú_logÚdebugro   ÚPopenr   ÚFileNotFoundErrorrq   rb   Ú	partitionr   ÚSubprocessErrorÚ	__class__rC   )r/   rc   rd   Úprocessr]   Úexcs   &&,   r(   r{   ÚFFmpegAudio._spawn_processÌ   sÀ   € Ü�
‰
Ð=¸tÔDØˆð	Ü ×&Ò& tÑaÔ;KÐaÐO`ÑaˆGð ˆNøô !ô 	LÜ3=¸dÄC×3HÒ3H˜Ÿ™¨Ó,¨QÖ/ÈdÐSTÍgˆJÜ! *Ð/@Õ"@ÓAÀtÐKÜ×)Ñ)ô 	]Ü! N°3·=±=×3IÑ3IÐ2JÈ"ÈSÈEÐ"RÓSÐY\Ð\ûð	]ús   š9 ¹A'CÂ!CÂ"&CÃCc               ó   € V ^8„  d   QhRR/# r9   r&   )r'   s   "r(   r)   re   Ù   s   € ÷ nñ n¨4ñ nr+   c                ó¶  € V P                   \        J d   R# V P                   P                  4       pVf   R# V P                  '       d   R# V^ 8w  du   V P                  fe   RpV P
                  '       d-    V P
                  P                  R4      P                  RR7      pV'       d   TMRp\        RV RV 24      V n        R# R# R#   \         d    Rp L7i ; i)	z9Set _current_error if FFmpeg exited with a non-zero code.Ni    Úignore)Úerrorsz<failed to read stderr>z<no stderr>zFFmpeg exited with code z
. Stderr: )
rz   r   Úpollr‚   r�   r~   r0   Údecoderx   r   )r/   rY   Ústderr_textÚstderr_infos   &   r(   Ú_check_process_returncodeÚ%FFmpegAudio._check_process_returncodeÙ   sÇ   € à�=‰=œGÓ#Ùà�m‰m× Ñ Ó"ˆØŠ;Ùà�=�=ˆ=Ùà�!Œ8˜×+Ñ+Ò3ð ˆKØ�|�|ˆ|ð<Ø"&§,¡,×"3Ñ"3°DÓ"9×"@Ñ"@ÈÐ"@Ó"Q�K÷ *5™+¸-ˆKÜ"4Ð7OÐPSÈuÐT^Ð_jÐ^kÐ5lÓ"mˆDÖñ 4‰8øô !ô <Ø";’Kð<ús   Á5+C ÃCÃCc               ó   € V ^8„  d   QhRR/# r9   r&   )r'   s   "r(   r)   re   ò   s   € ÷ (ñ (˜tñ (r+   c           	     	óš  € V P                  4        \        V R \        4      pV\        J d   R# \        VRR4      p\        P	                  RV4        VP                  4         VP                  4       RJ pV'       dL   \        P                  RV4        VP                  4        \        P                  R	V\        VR
R4      4       R# \        P                  RV\        VR
R4      4       R#   \         d    \        P                  RT4        L­i ; i  \         d    \        P                  RT4       Rp LÃi ; i  \         d     L¥i ; i)rz   Nrƒ   Úunknownz)Preparing to terminate ffmpeg process %s.z3Ignoring error attempting to kill ffmpeg process %sz*Error checking poll() on ffmpeg process %sFz=ffmpeg process %s has not terminated. Waiting to terminate...zBffmpeg process %s should have terminated with a return code of %s.Ú
returncodezAffmpeg process %s successfully terminated with return code of %s.)r¤   Úgetattrr   r’   r“   Úkillrx   Ú	exceptionr    ÚinfoÚcommunicate)r/   Úprocrƒ   Ústill_runnings   &   r(   Ú_kill_processÚFFmpegAudio._kill_processò   s)  € à×&Ñ&Ô(ô �t˜Z¬Ó1ˆà”7‹?Ùä�d˜E 9Ó-ˆÜ�
‰
Ð>ÀÔDð	WØ�I‰IŒKð	"Ø ŸI™I›K¨4Ð/ˆM÷
 Ü�I‰IÐUÐWZÔ[ðØ× Ñ Ô"ô �I‰IØTØÜ˜˜l¨IÓ6öô �I‰IØSØÜ˜˜l¨IÓ6öøô+ ô 	WÜ�N‰NÐPÐRUÖVð	Wûô
 ô 	"Ü�N‰NÐGÈÔMØ!ŠMð	"ûô ô Ùðús6   ÁC, Á#D ÂD< Ã,!DÄDÄ#D9Ä8D9Ä<E
Å	E
c               ó    € V ^8„  d   QhRRRR/# )r#   r`   rL   r$   r:   r&   )r'   s   "r(   r)   re     s   € ÷ ñ Ð#4ð ¸ñ r+   c                	ó¨  € V P                   '       d|   VP                  V P                  4      pV'       g+   V P                  e   V P                  P	                  4        R #  V P                  e   V P                  P                  V4       K‹  K�  R #   \         d7    \        P                  RT RR7       T P                   P                  4         R # i ; i)Nz2Write error for %s, this is probably not a problemT©Úexc_info)
rz   r0   r\   r}   ÚcloseÚwriterx   r’   r“   Ú	terminate)r/   r`   Údatas   && r(   r†   ÚFFmpegAudio._pipe_writer  s¡   € Ø�m�mˆmØ—;‘;˜tŸ~™~Ó.ˆDßØ—;‘;Ò*Ø—K‘K×%Ñ%Ô'ÙðØ—;‘;Ò*Ø—K‘K×%Ñ% dÖ+ñ +ñ øô ô Ü—
‘
ÐOÐQUÐ`d�
Ôeà—‘×'Ñ'Ô)Úð	ús   Á!)B Â=CÃCc               ó    € V ^8„  d   QhRRRR/# )r#   Údestz	IO[bytes]r$   r:   r&   )r'   s   "r(   r)   re   ,  s   € ÷ ñ  ð ¨tñ r+   c                	ó¢  € V P                   '       dQ   V P                  f   R #  V P                  P                  V P                  4      pTf   R #  TP                  T4       Kb  R #   \         d    \
        P                  RT RR7        R # i ; i  \         d5    \
        P                  RT 4       T P                  P                  4         R # i ; i)Nz1Read error for %s, this is probably not a problemTrµ   zWrite error for %s)
rz   r~   r0   r\   rx   r’   r“   r¸   r¬   r·   )r/   r½   rº   s   && r(   rˆ   ÚFFmpegAudio._pipe_reader,  s°   € Ø�m�mˆmØ�|‰|Ò#ÙðØ"Ÿl™l×/Ñ/°·±Ó?�ð Š|ÙðØ—
‘
˜4Ö ñ øô
 ô Ü—
‘
ÐNÐPTÐ_c�
ÔdÚðûô ô Ü—‘Ð3°TÔ:Ø—‘×"Ñ"Ô$Úðús#   ¤%A% ÁB Á%#BÂBÂ;CÃCc               ó   € V ^8„  d   QhRR/# r9   r&   )r'   s   "r(   r)   re   >  s   € ÷ Lñ L˜ñ Lr+   c                	ót   € R V n         V P                  4        \        ;V n        ;V n        ;V n        V n        R# )TN)r‚   r±   r   rz   r|   r}   r~   r.   s   &r(   r<   ÚFFmpegAudio.cleanup>  s1   € ØˆŒØ×ÑÔÜDKÐKˆŒÐK˜œÐK t¤{°T¶\r+   )r�   r€   r   rz   r~   r}   r|   r‚   N)rC   rD   rE   rF   rG   ÚioÚDEFAULT_BUFFER_SIZEr\   Ú__annotations__rP   r{   r¤   r±   r†   rˆ   r<   rH   r&   r+   r(   r   r   �   sP   ‡ ñð ×+Ñ+€IˆsÓ+ð2-ð #÷	2-õhõnõ2(õTõ ÷$Lñ Lr+   c            
      ób   a € ] tR tRtRtRRRRRRR	RR
R/R V 3R llltR R ltR R ltRtV ;t	# )r   iD  añ  An audio source from FFmpeg (or AVConv).

This launches a sub-process to a specific input file given.

.. warning::

    You must have the ffmpeg or avconv executable in your path environment
    variable in order for this to work.

Parameters
------------
source: Union[:class:`str`, :class:`io.BufferedIOBase`]
    The input that ffmpeg will take and convert to PCM bytes.
    If ``pipe`` is ``True`` then this is a file-like object that is
    passed to the stdin of ffmpeg.
executable: :class:`str`
    The executable name (and path) to use. Defaults to ``ffmpeg``.

    .. warning::

        Since this class spawns a subprocess, care should be taken to not
        pass in an arbitrary executable name when using this parameter.

pipe: :class:`bool`
    If ``True``, denotes that ``source`` parameter will be passed
    to the stdin of ffmpeg. Defaults to ``False``.
stderr: Optional[:term:`py:file object`]
    A file-like object to pass to the Popen constructor.
before_options: Optional[:class:`str`]
    Extra command line arguments to pass to ffmpeg before the ``-i`` flag.
options: Optional[:class:`str`]
    Extra command line arguments to pass to ffmpeg after the ``-i`` flag.

Raises
--------
ClientException
    The subprocess failed to be created.
r]   r^   ÚpipeFrh   NÚbefore_optionsÚoptionsc               ó4   € V ^8„  d   QhRRRRRRRRR	R
RR
RR/# )r#   r`   ra   r]   rb   rÇ   r4   rh   úOptional[IO[bytes]]rÈ   úOptional[str]rÉ   r$   r:   r&   )r'   s   "r(   r)   ÚFFmpegPCMAudio.__annotate__l  sY   € ÷  Xñ  Xà-ð Xð ð	 Xð
 ð Xð $ð Xð &ð Xð ð Xð 
ñ Xr+   c               	óP  <€ . pR V'       d   \         P                  M\         P                  RV/p\        V\        4      '       d&   VP                  \        P                  ! V4      4       VP                  R4       TP                  V'       d   RMT4       VP                  RRRRRR	R
RR\	        V P                  4      3
4       \        V\        4      '       d&   VP                  \        P                  ! V4      4       VP                  R4       \        S	V `,  ! V3RVRV/VB  R# )rg   rh   ú-iÚ-ú-fÚs16leú-arÚ48000ú-acÚ2ú	-loglevelÚwarningú
-blocksizeúpipe:1r]   rc   N)ro   rp   ÚDEVNULLrq   rb   ÚextendÚshlexÚsplitÚappendr\   ÚsuperrP   )
r/   r`   r]   rÇ   rh   rÈ   rÉ   rc   rd   r˜   s
   &&$$$$$  €r(   rP   ÚFFmpegPCMAudio.__init__l  sè   ø€ ð ˆØ$¿¤j§o¢oÄ:×CUÑCUÐW_ÐagÐhÐä�n¤c×*Ò*Ø�K‰KœŸš NÓ3Ô4à�‰�DÔØ�‰Ÿ4‘C VÔ,ð 	�‰�T˜7Ø˜GØ˜CØ  )Ø!¤3 t§~¡~Ó#6ð	8ô 	9ô �gœs×#Ò#Ø�K‰KœŸš GÓ,Ô-à�‰�HÔä‰Ò˜ÑW¨JÐW¸TÐWÐEVÔWr+   c               ó   € V ^8„  d   QhRR/# r"   r&   )r'   s   "r(   r)   rÍ   Ž  s   € ÷ ñ �eñ r+   c                	ó¸   € V P                   P                  \        P                  4      p\	        V4      \        P                  8w  d   V P                  4        R # V# rT   )r|   r0   rU   rV   rW   r¤   rX   s   & r(   r0   ÚFFmpegPCMAudio.readŽ  sB   € Ø�l‰l×Ñ¤× 6Ñ 6Ó7ˆÜˆs‹8”{×-Ñ-Ô-à×*Ñ*Ô,ÙØˆ
r+   c               ó   € V ^8„  d   QhRR/# r3   r&   )r'   s   "r(   r)   rÍ   –  s   € ÷ ñ ˜ñ r+   c                	ó   € R # )Fr&   r.   s   &r(   r6   ÚFFmpegPCMAudio.is_opus–  s   € Ùr+   r&   )
rC   rD   rE   rF   rG   rP   r0   r6   rH   Ú__classcell__©r˜   s   @r(   r   r   D  s\   ø† ñ%ðN Xð #ð	 Xð
 ð Xð '+ð Xð )-ð Xð "&÷ Xò  XõD÷ó r+   c                  óÞ   a € ] tR tRtRtRRRRRRRR	R
RRRRR/R V 3R lllt]RR/R R ll4       t]RRRR/R R ll4       t]	RR R ll4       t
]	RR R ll4       tR R ltR R ltRtV ;t# )r   iš  a¤
  An audio source from FFmpeg (or AVConv).

This launches a sub-process to a specific input file given.  However, rather than
producing PCM packets like :class:`FFmpegPCMAudio` does that need to be encoded to
Opus, this class produces Opus packets, skipping the encoding step done by the library.

Alternatively, instead of instantiating this class directly, you can use
:meth:`FFmpegOpusAudio.from_probe` to probe for bitrate and codec information.  This
can be used to opportunistically skip pointless re-encoding of existing Opus audio data
for a boost in performance at the cost of a short initial delay to gather the information.
The same can be achieved by passing ``copy`` to the ``codec`` parameter, but only if you
know that the input source is Opus encoded beforehand.

.. versionadded:: 1.3

.. warning::

    You must have the ffmpeg or avconv executable in your path environment
    variable in order for this to work.

Parameters
------------
source: Union[:class:`str`, :class:`io.BufferedIOBase`]
    The input that ffmpeg will take and convert to Opus bytes.
    If ``pipe`` is ``True`` then this is a file-like object that is
    passed to the stdin of ffmpeg.
bitrate: :class:`int`
    The bitrate in kbps to encode the output to.  Defaults to ``128``.
codec: Optional[:class:`str`]
    The codec to use to encode the audio data.  Normally this would be
    just ``libopus``, but is used by :meth:`FFmpegOpusAudio.from_probe` to
    opportunistically skip pointlessly re-encoding Opus audio data by passing
    ``copy`` as the codec value.  Any values other than ``copy``, ``opus``, or
    ``libopus`` will be considered ``libopus``.  Defaults to ``libopus``.

    .. warning::

        Do not provide this parameter unless you are certain that the audio input is
        already Opus encoded.  For typical use :meth:`FFmpegOpusAudio.from_probe`
        should be used to determine the proper value for this parameter.

executable: :class:`str`
    The executable name (and path) to use. Defaults to ``ffmpeg``.

    .. warning::

        Since this class spawns a subprocess, care should be taken to not
        pass in an arbitrary executable name when using this parameter.

pipe: :class:`bool`
    If ``True``, denotes that ``source`` parameter will be passed
    to the stdin of ffmpeg. Defaults to ``False``.
stderr: Optional[:term:`py:file object`]
    A file-like object to pass to the Popen constructor.
before_options: Optional[:class:`str`]
    Extra command line arguments to pass to ffmpeg before the ``-i`` flag.
options: Optional[:class:`str`]
    Extra command line arguments to pass to ffmpeg after the ``-i`` flag.

Raises
--------
ClientException
    The subprocess failed to be created.
ÚbitrateNÚcodecr]   r^   rÇ   Frh   rÈ   rÉ   c               ó<   € V ^8„  d   QhRRRRRRRRR	R
RRRRRRRR/	# )r#   r`   ra   rë   zOptional[int]rì   rÌ   r]   rb   rÇ   r4   rh   rË   rÈ   rÉ   r$   r:   r&   )r'   s   "r(   r)   ÚFFmpegOpusAudio.__annotate__Ü  so   € ÷ +Cñ +Cà-ð+Cð ð	+Cð
 ð+Cð ð+Cð ð+Cð $ð+Cð &ð+Cð ð+Cð 
ñ+Cr+   c               	óà  <€ . p	R V'       d   \         P                  M\         P                  RV/p
\        V\        4      '       d&   V	P                  \        P                  ! V4      4       V	P                  R4       T	P                  V'       d   RMT4       VR9   d   RMRpVe   TM^€pV	P                  RR	R
RRVRRRRRV R2RRRRRRR\	        V P                  4      34       \        V\        4      '       d&   V	P                  \        P                  ! V4      4       V	P                  R4       \        SV `,  ! V3RVRV	/V
B  \        V P                  4      P                  4       V n        R# )rg   rh   rÏ   rÐ   ÚopusÚlibopusÚcopyNz-map_metadataz-1rÑ   z-c:arÓ   rÔ   rÕ   rÖ   z-b:aÚkr×   rØ   z-fecÚtruez-packet_lossÚ15rÙ   rÚ   r]   rc   )rð   rñ   rò   )ro   rp   rÛ   rq   rb   rÜ   rÝ   rÞ   rß   r\   rà   rP   r   r|   Úiter_packetsÚ_packet_iter)r/   r`   rë   rì   r]   rÇ   rh   rÈ   rÉ   rc   rd   r˜   s   &&$$$$$$$  €r(   rP   ÚFFmpegOpusAudio.__init__Ü  s<  ø€ ð ˆØ$¿¤j§o¢oÄ:×CUÑCUÐW_ÐagÐhÐä�n¤c×*Ò*Ø�K‰KœŸš NÓ3Ô4à�‰�DÔØ�‰Ÿ4‘C VÔ,àÐ#>Ô>‘ÀIˆØ$Ò0‘'°cˆð 	�‰�_ dØ˜6Ø˜UØ˜GØ˜CØ ˜y¨˜]Ø  )Ø˜VØ# TØ!¤3 t§~¡~Ó#6ð	8ô 		9ô �gœs×#Ò#Ø�K‰KœŸš GÓ,Ô-à�‰�HÔä‰Ò˜ÑW¨JÐW¸TÐWÐEVÒWÜ% d§l¡lÓ3×@Ñ@ÓBˆÖr+   Úmethodc               ó(   € V ^8„  d   QhRRRRRRRR/# )	r#   r`   rb   rù   úOOptional[Union[str, Callable[[str, str], Tuple[Optional[str], Optional[int]]]]]r‹   r   r$   r   r&   )r'   s   "r(   r)   rî   
  s?   € ÷ @Cñ @Càð@Cð `ð	@Cð
 ð@Cð 
ñ@Cr+   c             ‹  ó„   "  € VP                  R4      pV P                  WVR7      G Rj  x€L
 w  rVV ! V3RVRV/VB #  L5i)aT  |coro|

A factory method that creates a :class:`FFmpegOpusAudio` after probing
the input source for audio codec and bitrate information.

Examples
----------

Use this function to create an :class:`FFmpegOpusAudio` instance instead of the constructor: ::

    source = await discord.FFmpegOpusAudio.from_probe("song.webm")
    voice_client.play(source)

If you are on Windows and don't have ffprobe installed, use the ``fallback`` method
to probe using ffmpeg instead: ::

    source = await discord.FFmpegOpusAudio.from_probe("song.webm", method='fallback')
    voice_client.play(source)

Using a custom method of determining codec and bitrate: ::

    def custom_probe(source, executable):
        # some analysis code here
        return codec, bitrate

    source = await discord.FFmpegOpusAudio.from_probe("song.webm", method=custom_probe)
    voice_client.play(source)

Parameters
------------
source
    Identical to the ``source`` parameter for the constructor.
method: Optional[Union[:class:`str`, Callable[:class:`str`, :class:`str`]]]
    The probing method used to determine bitrate and codec information. As a string, valid
    values are ``native`` to use ffprobe (or avprobe) and ``fallback`` to use ffmpeg
    (or avconv).  As a callable, it must take two string arguments, ``source`` and
    ``executable``.  Both parameters are the same values passed to this factory function.
    ``executable`` will default to ``ffmpeg`` if not provided as a keyword argument.
kwargs
    The remaining parameters to be passed to the :class:`FFmpegOpusAudio` constructor,
    excluding ``bitrate`` and ``codec``.

Raises
--------
AttributeError
    Invalid probe method, must be ``'native'`` or ``'fallback'``.
TypeError
    Invalid value for ``probe`` parameter, must be :class:`str` or a callable.

Returns
--------
:class:`FFmpegOpusAudio`
    An instance of this class.
r]   )rù   r]   Nrë   rì   )rn   Úprobe)Úclsr`   rù   r‹   r]   rì   rë   s   &&$,   r(   Ú
from_probeÚFFmpegOpusAudio.from_probe	  sM   é € ð~ —Z‘Z Ó-ˆ
Ø"Ÿy™y¨È:˜yÓV×V‰ˆÙ�6ÑB 7ÐB°%ÐB¸6ÑBÐBñ Wùs   ‚(A ª>«A c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r#   r`   rb   rù   rû   r]   rÌ   r$   ú#Tuple[Optional[str], Optional[int]]r&   )r'   s   "r(   r)   rî   M  s9   € ÷ Jñ JàðJð `ð	Jð
 "ðJð 
-ñJr+   c             ƒ  óÖ  aaaa"  € T;'       g    RpS;'       g    RoR;oo\        V\        4      '       dE   \        V RV,           R4      oSf   \        RV: 24      hSV P                  J d   V P
                  oMC\        V4      '       d   VoV P
                  oM#\        RVP                  P                   R24      hR;rE\        P                  ! 4       p VP                  RVVV3R l4      G Rj  x€L
 w  rE\        P                  R	WE4       WE3#  L  \        \         3 d    h \"         dµ    S'       g   \        P%                  R
TS4       Ru # \        P%                  RTS4        TP                  RTTT3R l4      G Rj  x€L 
 w  rE\        P                  RYE4        YE3#   \        \         3 d    h \"         d    \        P%                  RS4         YE3# i ; ii ; i5i)a«  |coro|

Probes the input source for bitrate and codec information.

Parameters
------------
source
    Identical to the ``source`` parameter for :class:`FFmpegOpusAudio`.
method
    Identical to the ``method`` parameter for :meth:`FFmpegOpusAudio.from_probe`.
executable: :class:`str`
    Identical to the ``executable`` parameter for :class:`FFmpegOpusAudio`.

Raises
--------
AttributeError
    Invalid probe method, must be ``'native'`` or ``'fallback'``.
TypeError
    Invalid value for ``probe`` parameter, must be :class:`str` or a callable.

Returns
---------
Optional[Tuple[Optional[:class:`str`], :class:`int`]]
    A 2-tuple with the codec and bitrate of the input source.
Únativer^   NÚ_probe_codec_zInvalid probe method z5Expected str or callable for parameter 'probe', not 'Ú'c                 ó   <€ S! SS 4      # r@   r&   )r]   Ú	probefuncr`   s   €€€r(   Ú<lambda>Ú'FFmpegOpusAudio.probe.<locals>.<lambda>ƒ  s   ø€ ÁiÐPVÐXbÔFcr+   z Probe found codec=%s, bitrate=%szProbe '%s' using '%s' failedz-Probe '%s' using '%s' failed, trying fallbackc                 ó   <€ S! SS 4      # r@   r&   )r]   Úfallbackr`   s   €€€r(   r	  r
  �  s   ø€ É(ÐSYÐ[eÔJfr+   z)Fallback probe found codec=%s, bitrate=%sz Fallback probe using '%s' failed)NN)rq   rb   rª   ÚAttributeErrorÚ_probe_codec_nativeÚ_probe_codec_fallbackÚcallablerr   r˜   rC   ÚasyncioÚget_running_loopÚrun_in_executorr’   r“   ÚKeyboardInterruptÚ
SystemExitÚBaseExceptionr¬   )	rþ   r`   rù   r]   rì   rë   Úloopr  r  s	   &f$d   @@r(   rý   ÚFFmpegOpusAudio.probeL  sÖ  ûé € ðD ×#Ð#˜8ˆØ×+Ð+ 8ˆ
Ø#Ð#ˆ	�Hä�fœc×"Ò"Ü  _°vÕ%=¸tÓDˆIØÒ Ü$Ð'<¸V¹JÐ%GÓHÐHà˜C×3Ñ3Ó3Ø×4Ñ4�øä�f×ÒØˆIØ×0Ñ0‰HäÐSÐTZ×TdÑTd×TmÑTmÐSnÐnoÐpÓqÐqàÐˆÜ×'Ò'Ó)ˆð	KØ#'×#7Ñ#7¸Ö>cÓ#d×d‰NˆEô$ �J‰JÐ9¸5ÔJàˆ~Ðñ) eøÜ!¤:Ð.ô 	ØÜô 	XßÜ—‘Ð=¸vÀzÔRØ!Ò!ä�N‰NÐJÈFÐT^Ô_ðXØ'+×';Ñ';¸DÖBfÓ'g×!gÐ!g‘�ô —
‘
ÐFÈÕWð ˆ~Ðøô &¤zÐ2ô ØÜ ô OÜ—‘ÐAÀ:ÖNð ˆ~ÐðOúð	Xüs�   †G)œB<G)ÃD Ã4DÃ5D Ã;G)ÄD ÄG&Ä1G&Ä:G&ÅG)ÅG&Å-F*ÆFÆ	F*ÆG&Æ&G)Æ*G"ÇG"ÇG&ÇG)Ç!G"Ç"G&Ç&G)c               ó    € V ^8„  d   QhRRRR/# ©r#   r]   rb   r$   r  r&   )r'   s   "r(   r)   rî   š  s   € ÷ ñ °ð ÐCfñ r+   c           	     	ór  € VR9   d   VR,          R,           MTpVRRRRRRR	V .	p\         P                  ! V^R
7      pR;rVV'       do   \        P                  ! V4      pVR,          ^ ,          pVP	                  R4      p\        VP	                  R^ 4      4      p\        \        VR,          4      R4      pWV3# )r^   :Nr#   Nrý   z-vÚquietz-print_formatÚjsonz-show_streamsz-select_streamsza:0©ÚtimeoutNÚstreamsÚ
codec_nameÚbit_rateiè  é   )r^   Úavconv)ro   Úcheck_outputr  Úloadsrn   r   ÚmaxÚround)	r`   r]   Úexerc   Úoutputrì   rë   rº   Ú
streamdatas	   &&       r(   r  Ú#FFmpegOpusAudio._probe_codec_native™  s¯   € à*4Ð8LÔ*Lˆj˜�n˜wÖ&ÐR\ˆØ�T˜7 O°V¸_ÐN_ÐafÐhnÐoˆÜ×(Ò(¨°rÔ:ˆØÐˆçÜ—:’:˜fÓ%ˆDØ˜i�¨Õ+ˆJà—N‘N <Ó0ˆEÜ˜*Ÿ.™.¨°QÓ7Ó8ˆGÜœ% ¨$¥Ó/°Ó5ˆGàˆ~Ðr+   c               ó    € V ^8„  d   QhRRRR/# r  r&   )r'   s   "r(   r)   rî   «  s   € ÷ ñ °#ð ÐEhñ r+   c                	ó¾  € VR RV .p\         P                  ! V\        \         P                  \         P                  R7      pVP                  ^R7      w  rEVP                  R4      pR;rx\        P                  ! RV4      p	V	'       d   V	P                  ^4      p\        P                  ! RV4      p
V
'       d%   \        \        V
P                  ^4      4      R4      pWx3# )	z-hide_bannerrÏ   )r�   rj   rh   r  Úutf8NzStream #0.*?Audio: (\w+)z(\d+) [kK]b/sr#  )ro   r”   r   rp   ÚSTDOUTr®   r¡   ÚreÚsearchÚgroupr'  r   )r`   r]   rc   r¯   ÚoutÚ_r*  rì   rë   Úcodec_matchÚbr_matchs   &&         r(   r  Ú%FFmpegOpusAudio._probe_codec_fallbackª  s·   € à˜N¨D°&Ð9ˆÜ×Ò Ô4DÌZÏ_É_Ôeo×evÑevÔwˆØ×!Ñ!¨"Ð!Ó-‰ˆØ—‘˜FÓ#ˆØÐˆä—i’iÐ ;¸VÓDˆßØ×%Ñ% aÓ(ˆEä—9’9Ð-¨vÓ6ˆßÜœ#˜hŸn™n¨QÓ/Ó0°#Ó6ˆGàˆ~Ðr+   c               ó   € V ^8„  d   QhRR/# r"   r&   )r'   s   "r(   r)   rî   ¼  s   € ÷ ñ �eñ r+   c                	ób   € \        V P                  R 4      pV'       g   V P                  4        V# rT   )Únextr÷   r¤   )r/   rº   s   & r(   r0   ÚFFmpegOpusAudio.read¼  s(   € Ü�D×%Ñ% sÓ+ˆßà×*Ñ*Ô,Øˆr+   c               ó   € V ^8„  d   QhRR/# r3   r&   )r'   s   "r(   r)   rî   Ã  s   € ÷ ñ ˜ñ r+   c                	ó   € R # )Tr&   r.   s   &r(   r6   ÚFFmpegOpusAudio.is_opusÃ  s   € Ùr+   )r÷   )r^   )rC   rD   rE   rF   rG   rP   Úclassmethodrÿ   rý   Ústaticmethodr  r  r0   r6   rH   rè   ré   s   @r(   r   r   š  sð   ø† ñ?ðB+Cð "&ð	+Cð
  $ð+Cð #ð+Cð ð+Cð '+ð+Cð )-ð+Cð "&÷+Cò +CðZ ð@Cð cgö	@Có ð@CðD ðJð cgð	Jð
 %)öJó ðJðX öó ðð  öó ðõ"÷ó r+   c                  ó‚   € ] tR tRtRtRR R llt]R R l4       t]P                  R R l4       tR	 R
 lt	R R lt
RtR# )r   iÇ  aÎ  Transforms a previous :class:`AudioSource` to have volume controls.

This does not work on audio sources that have :meth:`AudioSource.is_opus`
set to ``True``.

Parameters
------------
original: :class:`AudioSource`
    The original AudioSource to transform.
volume: :class:`float`
    The initial volume to set it to.
    See :attr:`volume` for more info.

Raises
-------
TypeError
    Not an audio source.
ClientException
    The audio source is opus encoded.
c               ó    € V ^8„  d   QhRRRR/# )r#   Úoriginalr   ÚvolumeÚfloatr&   )r'   s   "r(   r)   Ú!PCMVolumeTransformer.__annotate__Ý  s   € ÷ ñ  ð ¨Uñ r+   c                	óÒ   € \        V\        4      '       g$   \        R VP                  P                   R24      hVP                  4       '       d   \        R4      hWn        W n        R# )zexpected AudioSource not Ú.z%AudioSource must not be Opus encoded.N)	rq   r   rr   r˜   rC   r6   r   rD  rE  )r/   rD  rE  s   &&&r(   rP   ÚPCMVolumeTransformer.__init__Ý  sW   € Ü˜(¤K×0Ò0ÜÐ7¸×8JÑ8J×8SÑ8SÐ7TÐTUÐVÓWÐWà×Ñ×ÒÜ!Ð"IÓJÐJà$ŒØŽr+   c               ó   € V ^8„  d   QhRR/# )r#   r$   rF  r&   )r'   s   "r(   r)   rG  è  s   € ÷ ñ ˜ñ r+   c                ó   € V P                   # )zTRetrieves or sets the volume as a floating point percentage (e.g. ``1.0`` for 100%).)Ú_volumer.   s   &r(   rE  ÚPCMVolumeTransformer.volumeç  s   € ð �|‰|Ðr+   c               ó    € V ^8„  d   QhRRRR/# )r#   ÚvaluerF  r$   r:   r&   )r'   s   "r(   r)   rG  í  s   € ÷ 'ñ '˜Eð ' dñ 'r+   c                	ó(   € \        VR 4      V n        R# )g        N)r'  rM  )r/   rP  s   &&r(   rE  rN  ì  s   € ä˜5 #“ˆŽr+   c               ó   € V ^8„  d   QhRR/# r9   r&   )r'   s   "r(   r)   rG  ð  s   € ÷  ñ  ˜ñ  r+   c                	ó:   € V P                   P                  4        R # r@   )rD  r<   r.   s   &r(   r<   ÚPCMVolumeTransformer.cleanupð  s   € Ø�‰×ÑÖr+   c               ó   € V ^8„  d   QhRR/# r"   r&   )r'   s   "r(   r)   rG  ó  s   € ÷ ;ñ ;�eñ ;r+   c                	óŽ   € V P                   P                  4       p\        P                  ! V^\	        V P
                  R4      4      # )r#   g       @)rD  r0   ÚaudioopÚmulÚminrM  rX   s   & r(   r0   ÚPCMVolumeTransformer.readó  s2   € Ø�m‰m× Ñ Ó"ˆÜ�{Š{˜3 ¤3 t§|¡|°SÓ#9Ó:Ð:r+   )rM  rD  rE  N)g      ð?)rC   rD   rE   rF   rG   rP   ÚpropertyrE  Úsetterr<   r0   rH   r&   r+   r(   r   r   Ç  sG   † ñ÷*ð ôó ðð ‡]�]ô'ó ð'õ ÷;ñ ;r+   c                  ó   a € ] tR tRt$ ]P
                  R,          tR]R&   RR/R V 3R llltR	 R
 lt	R R lt
R R ltR R ltRR/R R lltRR/R R lltR R ltR R ltR R ltR R ltR"R R  lltR!tV ;t# )#ÚAudioPlayeriø  g     @�@rF  ÚDELAYÚafterNc               ó(   € V ^8„  d   QhRRRRRRRR/# )	r#   r`   r   Úclientr   r`  z.Optional[Callable[[Optional[Exception]], Any]]r$   r:   r&   )r'   s   "r(   r)   ÚAudioPlayer.__annotate__û  s8   € ÷ Nñ NàðNð ðNð
 >ðNð 
ñNr+   c               	óŠ  <€ \         SV `  R R\        V 4      R 2R7       Wn        W n        W0n        \        P                  ! 4       V n        \        P                  ! 4       V n	        V P                  P                  4        RV n        \        P                  ! 4       V n        Ve   \        V4      '       g   \        R4      hR# R# )Tzaudio-player:z#x)rl   rm   Nz.Expected a callable for the "after" parameter.)rà   rP   Úidr`   rb  r`  r„   ÚEventÚ_endÚ_resumedÚsetr�   ÚLockÚ_lockr  rr   )r/   r`   rb  r`  r˜   s   &&&$€r(   rP   ÚAudioPlayer.__init__û  s—   ø€ ô 	‰Ñ ¨]¼2¸d»8ÀB¸-Ð+HÐÔIØ#)ŒØ#)ŒØEJŒ
ä%.§_¢_Ó%6ˆŒ	Ü)2¯ªÓ):ˆŒØ�‰×ÑÔØ37ˆÔÜ%.§^¢^Ó%5ˆŒ
àÒ¤X¨e§_¢_ÜÐLÓMÐMñ &5Ñr+   c               ó   € V ^8„  d   QhRR/# r9   r&   )r'   s   "r(   r)   rc    s   € ÷ 1 ñ 1 ˜ñ 1 r+   c                	óò  € ^ V n         \        P                  ! 4       V n        V P                  pVP
                  pV P                  \        P                  4       V P                  P                  4       '       EgV   V P                  P                  4       '       g-   V P                  4        V P                  P                  4        Km  V P                  P                  4       pV'       gF   V P                   f&   \#        V P                  RR4      pV'       d   W@n        V P%                  4        EM¢VP'                  4       '       gÐ   \(        P+                  RVP,                  4       VP/                  VP,                  4      pV P                  P                  4       '       g	   V'       g   \(        P+                  R4       R# \(        P+                  R4       V P                  \        P                  4       ^ V n         \        P                  ! 4       V n        V! W0P                  P1                  4       '       * R7       V ;P                   ^,          un         V P                  V P2                  V P                   ,          ,           p\5        ^ V P2                  V\        P                  ! 4       ,
          ,           4      p\        P6                  ! V4       EKv  VP'                  4       '       d   V P                  4        R# R# )é    Nr�   z!Not connected, waiting for %ss...zAborting playbackzReconnected, resuming playback©Úencode)ÚloopsÚtimeÚperf_counterÚ_startrb  Úsend_audio_packetÚ_speakr   Úvoicerg  Úis_setrh  Úsend_silenceÚwaitr`   r0   r�   rª   ÚstopÚis_connectedr’   r“   r  Úwait_until_connectedr6   r_  r'  Úsleep)r/   rb  Ú
play_audiorº   Úsource_errorÚ	connectedÚ	next_timeÚdelays   &       r(   Ú_do_runÚAudioPlayer._do_run  sñ  € ØˆŒ
Ü×'Ò'Ó)ˆŒð —‘ˆØ×-Ñ-ˆ
Ø�‰”M×'Ñ'Ô(à—)‘)×"Ñ"×$Ó$à—=‘=×'Ñ'×)Ò)Ø×!Ñ!Ô#à—‘×"Ñ"Ô$Ùà—;‘;×#Ñ#Ó%ˆDçà×&Ñ&Ò.Ü#*¨4¯;©;Ð8HÈ$Ó#O�Lß#Ø.:Ô+Ø—	‘	”Ùð ×&Ñ&×(Ò(Ü—
‘
Ð>ÀÇÁÔOà"×7Ñ7¸¿¹ÓG�	Ø—9‘9×#Ñ#×%Ò%¯YÜ—J‘JÐ2Ô3ÙÜ—
‘
Ð;Ô<Ø—‘œM×/Ñ/Ô0à�”
Ü"×/Ò/Ó1�”á�t¯©×(;Ñ(;Ó(=Ô$=Õ>Ø�JŠJ˜!�O�JØŸ™ d§j¡j°4·:±:Õ&=Õ=ˆIÜ˜˜4Ÿ:™:¨´T×5FÒ5FÓ5HÕ)HÕIÓJˆEÜ�JŠJ�u×à×Ñ× Ò Ø×ÑÖñ !r+   c               ó   € V ^8„  d   QhRR/# r9   r&   )r'   s   "r(   r)   rc  C  s   € ÷ "ñ "�Tñ "r+   c                	ó6  €  V P                  4        V P	                  4        V P
                  P                  4        R #   \         d!   pYn        T P                  4         R p?LRR p?ii ; i  T P	                  4        T P
                  P                  4        i ; ir@   )r…  rx   r�   r|  Ú_call_afterr`   r<   )r/   rš   s   & r(   ÚrunÚAudioPlayer.runC  sp   € ð	"Ø�L‰LŒNð
 ×ÑÔØ�K‰K×ÑÖ!øô ô 	Ø"%ÔØ�I‰I�K‰Kûð	ûð ×ÑÔØ�K‰K×ÑÕ!ús'   ‚> ¾A)Á	A$ÁA, Á$A)Á)A, Á,,Bc               ó   € V ^8„  d   QhRR/# r9   r&   )r'   s   "r(   r)   rc  M  s   € ÷ 
Vñ 
V˜Tñ 
Vr+   c                	ó&  € V P                   pV P                  e    V P                  V4       R # V'       d%   \        P                  RV P                  VR7       R # R #   \         d)   pYn        \        P                  RTR7        R p?R # R p?ii ; i)Nz"Calling the after function failed.rµ   zException in voice thread %s)r�   r`  rx   Ú__context__r’   r¬   rm   )r/   Úerrorrš   s   &  r(   r‰  ÚAudioPlayer._call_afterM  sw   € Ø×#Ñ#ˆà�:‰:Ò!ðSØ—
‘
˜5Ö!÷ Ü�N‰NÐ9¸4¿9¹9ÈuˆNÖUñ øô ô SØ"'”Ü—‘ÐCÈc�×RÒRûðSús   œA ÁBÁ(BÂBc               ó   € V ^8„  d   QhRR/# r9   r&   )r'   s   "r(   r)   rc  Y  s   € ÷ (ñ (�dñ (r+   c                	ó¬   € V P                   P                  4        V P                  P                  4        V P                  \        P
                  4       R # r@   )rg  ri  rh  rw  r   Únoner.   s   &r(   r|  ÚAudioPlayer.stopY  s1   € Ø�	‰	�‰ŒØ�‰×ÑÔØ�‰”M×&Ñ&Ö'r+   Úupdate_speakingTc               ó    € V ^8„  d   QhRRRR/# ©r#   r•  r4   r$   r:   r&   )r'   s   "r(   r)   rc  ^  s   € ÷ ,ñ ,¨ð ,¸ñ ,r+   c               	óŒ   € V P                   P                  4        V'       d"   V P                  \        P                  4       R # R # r@   )rh  Úclearrw  r   r“  ©r/   r•  s   &$r(   ÚpauseÚAudioPlayer.pause^  s,   € Ø�‰×ÑÔßØ�K‰Kœ×*Ñ*Ö+ñ r+   c               ó    € V ^8„  d   QhRRRR/# r—  r&   )r'   s   "r(   r)   rc  c  s   € ÷ -ñ -¨ð -¸ñ -r+   c               	óÎ   € ^ V n         \        P                  ! 4       V n        V P                  P                  4        V'       d"   V P                  \        P                  4       R# R# )ro  N)	rr  rs  rt  ru  rh  ri  rw  r   rx  rš  s   &$r(   ÚresumeÚAudioPlayer.resumec  sC   € ØˆŒ
Ü!×.Ò.Ó0ˆŒØ�‰×ÑÔßØ�K‰Kœ×+Ñ+Ö,ñ r+   c               ó   € V ^8„  d   QhRR/# r3   r&   )r'   s   "r(   r)   rc  j  s   € ÷ Añ A˜Dñ Ar+   c                	ó„   € V P                   P                  4       ;'       d     V P                  P                  4       '       * # r@   )rh  ry  rg  r.   s   &r(   Ú
is_playingÚAudioPlayer.is_playingj  s-   € Ø�}‰}×#Ñ#Ó%×@Ð@¨d¯i©i×.>Ñ.>Ó.@Ô*@Ð@r+   c               ó   € V ^8„  d   QhRR/# r3   r&   )r'   s   "r(   r)   rc  m  s   € ÷ Eñ E˜4ñ Er+   c                	óŽ   € V P                   P                  4       '       * ;'       d     V P                  P                  4       '       * # r@   )rg  ry  rh  r.   s   &r(   Ú	is_pausedÚAudioPlayer.is_pausedm  s0   € Ø—9‘9×#Ñ#Ó%Ô%×DÐD¨d¯m©m×.BÑ.BÓ.DÔ*DÐDr+   c               ó    € V ^8„  d   QhRRRR/# )r#   r`   r   r$   r:   r&   )r'   s   "r(   r)   rc  p  s   € ÷ /ñ / ð /°ñ /r+   c                	ó¼   € V P                   ;_uu_ 4        V P                  R R7       Wn        V P                  R R7       RRR4       R#   + '       g   i     R# ; i)F)r•  N)rk  r›  r`   rŸ  )r/   r`   s   &&r(   Ú
set_sourceÚAudioPlayer.set_sourcep  s8   € Ø�Z�Z‹ZØ�J‰J uˆJÔ-Ø ŒKØ�K‰K¨ˆKÔ.÷ �Z�ZŠZús   •+A
Á
A	c               ó    € V ^8„  d   QhRRRR/# )r#   Úspeakingr   r$   r:   r&   )r'   s   "r(   r)   rc  v  s   € ÷ =ñ =˜}ð =°ñ =r+   c                	ó  €  \         P                  ! V P                  P                  P	                  V4      V P                  P                  P
                  4       R#   \         d    \        P                  R 4        R# i ; i)zSpeaking call in player failedN)	r  Úrun_coroutine_threadsaferb  ÚwsÚspeakr  rx   r’   r¬   )r/   r®  s   &&r(   rw  ÚAudioPlayer._speakv  sV   € ð	=Ü×,Ò,¨T¯[©[¯^©^×-AÑ-AÀ(Ó-KÈTÏ[É[×M_ÑM_×MdÑMdÖeøÜô 	=Ü�N‰NÐ;×<ð	=ús   ‚AA Á B Á?B c               ó    € V ^8„  d   QhRRRR/# )r#   Úcountr   r$   r:   r&   )r'   s   "r(   r)   rc  |  s   € ÷ ñ  #ð ¨dñ r+   c                	ó’   €  \        V4       F$  pV P                  P                  \        R R7       K&  	  R#   \         d     R# i ; i)Frp  N)Úrangerb  rv  r   rx   )r/   rµ  rŒ   s   && r(   rz  ÚAudioPlayer.send_silence|  s>   € ð	Ü˜5–\�Ø—‘×-Ñ-¬lÀ5Ð-ÖIó "øäô 	âð	ús   ‚37 ·AÁA)	r�   rg  rk  rh  ru  r`  rb  rr  r`   )é   )rC   rD   rE   rF   rU   ÚFRAME_LENGTHr_  rÅ   rP   r…  rŠ  r‰  r|  r›  rŸ  r£  r§  r«  rw  rz  rH   rè   ré   s   @r(   r^  r^  ø  s   ø‡ Ø×+Ñ+¨fÕ4€Eˆ5Ó4ðNð
 AE÷Nò Nõ*1 õf"õ
Võ(ð
,¨t÷ ,ð
-°÷ -õAõEõ/õ=÷õ r+   r^  )r   r   r   r   r   r   );Ú__conditional_annotations__rG   Ú
__future__r   r„   ro   rt   rW  r  ÚloggingrÝ   rs  r  Úsysr1  rÃ   Útypingr   r   r   r   r   r   r	   r
   r   Úenumsr   rŸ   r   r   rð   r   rU   r   Úoggparser   Úutilsr   Útyping_extensionsr   Úvoice_clientr   r   Ú	getLoggerrC   r’   Ú__all__rÅ   Úplatformr   r   r   r   r   r   r   r…   r^  )r»  s   @r(   Ú<module>rÈ     s  øðôõ0 #ã Û Û Û Û Û Û Û Û Û 
Û 	Û 	ç ]× ]Õ ]å  ß 7ß 6Ý Ý çÝ&å)ñ ˆT˜Ô'€à×Ò˜Ó"€ð€ð Ó à‡<�<�7ÔØÑà!Ð÷,ñ ,ô^ˆ{ô ô&tL�+ô tLônS�[ô Sôlj�kô jôZ	.;˜;¨°­ô .;ôbJ�)×"Ñ"ö Jr+   