Ë
    P/æju	  ã                   óÊ   — d Z ddlmZmZ ddlZej
                  j                  «       Zdefd„Z	defd„Z
defd	„Zd
efd„Zdeeef   fd„Zdee   fd„Zdee   fd„Zdefd„Zy)z¦Module to change the configuration of libsox, which is used by I/O functions like
:py:mod:`~torchaudio.backend.sox_io_backend` and :py:mod:`~torchaudio.sox_effects`.
é    )ÚDictÚListNÚseedc                 ó.   — t         j                  | «       y)z’Set libsox's PRNG

    Args:
        seed (int): seed value. valid range is int32.

    See Also:
        http://sox.sourceforge.net/sox.html
    N)Úsox_extÚset_seed)r   s    ú]/root/repos/pocs/video-evals/.venv/lib/python3.12/site-packages/torchaudio/utils/sox_utils.pyr   r      s   € ô ×Ñ�TÕó    Ú	verbosityc                 ó.   — t         j                  | «       y)aD  Set libsox's verbosity

    Args:
        verbosity (int): Set verbosity level of libsox.

            * ``1`` failure messages
            * ``2`` warnings
            * ``3`` details of processing
            * ``4``-``6`` increasing levels of debug messages

    See Also:
        http://sox.sourceforge.net/sox.html
    N)r   Úset_verbosity)r   s    r	   r   r      s   € ô ×Ñ˜)Õ$r
   Úbuffer_sizec                 ó.   — t         j                  | «       y)zÊSet buffer size for sox effect chain

    Args:
        buffer_size (int): Set the size in bytes of the buffers used for processing audio.

    See Also:
        http://sox.sourceforge.net/sox.html
    N)r   Úset_buffer_size)r   s    r	   r   r   )   s   € ô ×Ñ˜KÕ(r
   Úuse_threadsc                 ó.   — t         j                  | «       y)a>  Set multithread option for sox effect chain

    Args:
        use_threads (bool): When ``True``, enables ``libsox``'s parallel effects channels processing.
            To use mutlithread, the underlying ``libsox`` has to be compiled with OpenMP support.

    See Also:
        http://sox.sourceforge.net/sox.html
    N)r   Úset_use_threads)r   s    r	   r   r   5   s   € ô ×Ñ˜KÕ(r
   Úreturnc                  ó<   — t        t        j                  «       «      S )zxList the available sox effect names

    Returns:
        Dict[str, str]: Mapping from ``effect name`` to ``usage``
    )Údictr   Úlist_effects© r
   r	   r   r   B   s   € ô ”×$Ñ$Ó&Ó'Ð'r
   c                  ó*   — t         j                  «       S )zoList the supported audio formats for read

    Returns:
        List[str]: List of supported audio formats
    )r   Úlist_read_formatsr   r
   r	   r   r   K   s   € ô ×$Ñ$Ó&Ð&r
   c                  ó*   — t         j                  «       S )zpList the supported audio formats for write

    Returns:
        List[str]: List of supported audio formats
    )r   Úlist_write_formatsr   r
   r	   r   r   T   s   € ô ×%Ñ%Ó'Ð'r
   c                  ó*   — t         j                  «       S )zxGet buffer size for sox effect chain

    Returns:
        int: size in bytes of buffers used for processing audio.
    )r   Úget_buffer_sizer   r
   r	   r   r   ]   s   € ô ×"Ñ"Ó$Ð$r
   )Ú__doc__Útypingr   r   Ú
torchaudioÚ
_extensionÚlazy_import_sox_extr   Úintr   r   r   Úboolr   Ústrr   r   r   r   r   r
   r	   ú<module>r'      s–   ðñ÷ ã à
×
Ñ
×
3Ñ
3Ó
5€ð	�3ó 	ð%˜Só %ð"	) ó 	)ð
) ó 
)ð(�d˜3 ˜8‘nó (ð'˜4 ™9ó 'ð(˜D ™Ió (ð%˜ô %r
   