o
    Y+i                     @   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ur%|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   J/var/www/html/venv/lib/python3.10/site-packages/moviepy/video/fx/speedx.py<lambda>   s    zspeedx.<locals>.<lambda>maskaudio)apply_toN)durationfl_timeset_duration)clipr   final_durationnewclipr   r   r   speedx   s   	
r   )NN)moviepy.decoratorsr   r   r   r   r   r   r   <module>   s    