U
    [Oh                     @   s   d dl mZmZ dddZdS )    )apply_to_audioapply_to_maskNc                    sN   |rd| j  |  | j fddddgd}| j dk	rJ|d| j    }|S )a(  
    Returns a clip playing the current clip but at a speed multiplied
    by ``factor``. Instead of factor one can indicate the desired
    ``final_duration`` of the clip, and the factor will be automatically
    computed.
    The same effect is applied to the clip's audio and mask if any.
    g      ?c                    s    |  S )N )tfactorr   I/var/www/html/venv/lib/python3.8/site-packages/moviepy/video/fx/speedx.py<lambda>       zspeedx.<locals>.<lambda>maskZaudio)Zapply_toN)durationZfl_timeZset_duration)Zclipr   Zfinal_durationZnewclipr   r   r   speedx   s    	
r   )NN)Zmoviepy.decoratorsr   r   r   r   r   r   r   <module>   s   