Your IP : 52.15.241.87
o
6��f� � @ s2 d dgZ ddlmZ edd�Zdej_dej_dej_d ej_d
ej _dd � Z
dd� Zg Zd
d� Z
e�e
� dd� Ze�e� dd� Ze�e� dd� Ze�e� dd� Ze�e� dd� Ze�e� dd� Ze�e� dd� Ze�e� dd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zed)kr�e� d*S d*S )+�what�whathdr� )�
namedtuple�
SndHeadersz.filetype framerate nchannels nframes sampwidthz�The value for type indicates the data type
and will be one of the strings 'aifc', 'aiff', 'au','hcom',
'sndr', 'sndt', 'voc', 'wav', '8svx', 'sb', 'ub', or 'ul'.zYThe sampling_rate will be either the actual
value or 0 if unknown or difficult to decode.z^The number of channels or 0 if it cannot be
determined or if the value is difficult to decode.z?The value for frames will be either the number
of frames or -1.zAEither the sample size in bits or
'A' for A-LAW or 'U' for u-LAW.c C s t | �}|S )N)r )�filename�res� r �-/opt/alt/python310/lib64/python3.10/sndhdr.pyr 4 s c C sp t | d��(}|�d�}tD ]}|||�}|r$t|� W d � S q W d � d S 1 s1w Y d S )N�rbi )�open�read�testsr )r �f�hZtfr r r r r : s
�$�c C s� dd l }| �d�sd S | dd� dkrd}n
| dd� dkr!d}nd S |�d� z|�|d �}W n
t|jfy= Y d S w ||�� |�� |�� d|� � fS )
Nr � FORM� � s AIFC�aifcs AIFFZaiff�r)
r �
startswith�seekr �EOFError�Error�getframerate�getnchannels�
getnframes�getsampwidth)r r r Zfmt�ar r r � test_aifcK s"