o
    Y+i                     @   s,   d dl Zd dlmZmZ eedd ZdS )    N)audio_video_fxrequires_durationc                    s    fdd} j |ddS )zw Return a sound clip where the sound fades out progressively
        over ``duration`` seconds at the end of the clip. c                    sr   | |}t |r td j|   d}t ||g}|| S t d j|   d}t ||gj}|| S )Ng      ?   )npisscalarmindurationarrayminimumvstackT)gftgftfactorclipr    Q/var/www/html/venv/lib/python3.10/site-packages/moviepy/audio/fx/audio_fadeout.pyfading   s   
zaudio_fadeout.<locals>.fadingT)keep_duration)fl)r   r   r   r   r   r   audio_fadeout   s   r   )numpyr   moviepy.decoratorsr   r   r   r   r   r   r   <module>   s
    