a
    åze³
  ã                   @   s\   d gZ ddlZddlmZ ddlmZ ddlmZ ddddd	œZd
d„ Z	G dd „ d eƒZ
dS )Ú	MIMEAudioé    N)ÚBytesIO)Úencoders)ÚMIMENonMultipartZbasiczx-wavzx-aiff)ZauZwavZaiffZaifcc                 C   sH   | d d… }t |ƒ}tjD ](}|||ƒ}|d urt |d ¡  S qd S )Ni   r   )r   ÚsndhdrZtestsÚ_sndhdr_MIMEmapÚget)ÚdataZhdrZfakefileZtestfnÚres© r   ú&/usr/lib/python3.9/email/mime/audio.pyÚ_whatsnd   s    

r   c                   @   s"   e Zd Zdejfddœdd„ZdS )r   N)Úpolicyc                K   sP   |d u rt |ƒ}|d u r tdƒ‚tj| d|fd|i|¤Ž |  |¡ || ƒ d S )Nz!Could not find audio MIME subtypeZaudior   )r   Ú	TypeErrorr   Ú__init__Zset_payload)ÚselfZ
_audiodataZ_subtypeZ_encoderr   Z_paramsr   r   r   r   -   s    ÿ
zMIMEAudio.__init__)Ú__name__Ú
__module__Ú__qualname__r   Zencode_base64r   r   r   r   r   r   *   s
   ÿÿ)Ú__all__r   Úior   Zemailr   Zemail.mime.nonmultipartr   r   r   r   r   r   r   r   Ú<module>   s   ý