o
    Y+ix                     @   s$   d dl Zd dlmZ edd ZdS )    N)audio_video_fxc                    s    fdd}| j |ddS )z} Return an audio (or video) clip that is first mute, then the
        sound arrives progressively over ``duration`` seconds. c                    sf   | |}t |rtd|   d}t ||g}|| S t d|   d}t ||gj}|| S )Ng      ?   )npisscalarminarrayminimumvstackT)gftgftfactorduration P/var/www/html/venv/lib/python3.10/site-packages/moviepy/audio/fx/audio_fadein.pyfading   s   
zaudio_fadein.<locals>.fadingT)keep_duration)fl)clipr   r   r   r   r   audio_fadein   s   
r   )numpyr   moviepy.decoratorsr   r   r   r   r   r   <module>   s    