+
    ¶¬‚jš  ã                   ó*   € R t ^ RIt^RIHt R R ltR# )z:Functions to play audio on Windows using native win32 APIsN)Úpr_errc                ó(   € V ^8„  d   QhR\         RR/# )é   Ú	mp3_fnameÚreturnN©Ústr)Úformats   "ÚY/Users/cheyod/AIGC/DSH/.venv/lib/python3.14/site-packages/edge_playback/win32_playback.pyÚ__annotate__r      s   € ÷ ,ñ ,œcð , dñ ,ó    c                ó¨  aaa€ \         P                  R8w  d   \        R4      h^ RIHoHpHp VP                  P                  oVP                  VP                  VP                  .Sn        VP                  Sn        R VV3R llpVP                  P                  oR V3R llpV! V 4      pV! R4       V! R	V R
24       V! R4       V! R4       R# )z-Play mp3 file with given path using win32 APIÚwin32z"Function only available on Windows)Úcreate_unicode_bufferÚwindllÚwintypesc                ó0   € V ^8„  d   QhR\         R\         /# )r   Ú	long_namer   r   )r	   s   "r
   r   Ú$play_mp3_win32.<locals>.__annotate__   s   € ÷ %ñ %¤sð %¬sñ %r   c                óX   <€ ^ p S! V4      pS! WV4      pW8¼  d   VP                   # TpK(  )zd
Gets the DOS-safe short path name of a given long path.
http://stackoverflow.com/a/23598461/200291
)Úvalue)r   Úoutput_buf_sizeÚ
output_bufÚneededÚ_get_short_path_name_wr   s   &   €€r
   Úget_short_path_nameÚ+play_mp3_win32.<locals>.get_short_path_name   s:   ø€ ð
 ˆØÙ.¨Ó?ˆJÙ+¨IÀ?ÓSˆFØÔ(Ø!×'Ñ'Ð'Ø$ŠOr   c                ó(   € V ^8„  d   QhR\         RR/# )r   Úmsgr   Nr   )r	   s   "r
   r   r   (   s   € ÷ ñ ”cð ˜dñ r   c                ó€   <€ S! V ^ ^ ^ 4      pV^ 8w  d+   \        RV RV  R24       \        P                  ! ^4       R# R# )zSend MCI command stringzError z in mciSendString z
. Exiting.N)r   ÚsysÚexit)r   ÚresultÚmci_send_string_ws   & €r
   Úmci_sendÚ play_mp3_win32.<locals>.mci_send(   sB   ø€ á" 3¨¨1¨aÓ0ˆØ�QŒ;Ü�V˜F˜8Ð#5°c°U¸*ÐEÔFÜ�HŠH�QŽKñ r   z	Close AllzOpen "z" Type MPEGVideo Alias theMP3zPlay theMP3 WaitzClose theMP3N)r    ÚplatformÚNotImplementedErrorÚctypesr   r   r   Úkernel32ÚGetShortPathNameWÚLPCWSTRÚLPWSTRÚDWORDÚargtypesÚrestypeÚwinmmÚmciSendStringW)	r   r   r   r   r$   Úmp3_shortnamer   r   r#   s	   &     @@@r
   Úplay_mp3_win32r3      sÃ   ú€ ô ‡|�|�wÔÜ!Ð"FÓGÐG÷ ?Ñ>à#Ÿ_™_×>Ñ>Ðà×ÑØ�‰Ø�‰ð'ÐÔ#ð
 &.§^¡^ÐÔ"÷%ñ %ð Ÿ™×3Ñ3Ð÷ð ñ (¨	Ó2€Máˆ[ÔÙˆv�m�_Ð$AÐBÔCÙÐÔ Ùˆ^Ör   )Ú__doc__r    Úutilr   r3   © r   r
   Ú<module>r7      s   ðÙ @ã 
å ÷,r   