Ë
    Eü´jt  ã                   ó`   — d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 e G d„ de	«      «       Z
y)	é    )Ú	dataclass)Úconcatenate_audioclips)ÚClip)Úaudio_video_effect)ÚEffectc                   óH   — e Zd ZU dZdZeed<   dZeed<   e	de
de
fd„«       Zy)Ú	AudioLoopa¯  Loops over an audio clip.

    Returns an audio clip that plays the given clip either
    `n_loops` times, or during `duration` seconds.

    Examples
    --------

    .. code:: python

        from moviepy import *
        videoclip = VideoFileClip('myvideo.mp4')
        music = AudioFileClip('music.ogg')
        audio = music.with_effects([afx.AudioLoop(duration=videoclip.duration)])
        videoclip.with_audio(audio)

    NÚn_loopsÚdurationÚclipÚreturnc                 ó  — | j                   �\t        | j                   |j                   z  «      dz   | _        t        | j                  |gz  «      j	                  | j                   «      S t        | j                  |gz  «      S )zApply the effect to the clip.é   )r   Úintr
   r   Úwith_duration)Úselfr   s     úX/root/workspace/ytshorts/venv/lib/python3.12/site-packages/moviepy/audio/fx/AudioLoop.pyÚapplyzAudioLoop.apply    sn   € ð �=‰=Ð$Ü˜tŸ}™}¨t¯}©}Ñ<Ó=ÀÑAˆDŒLÜ)¨$¯,©,¸$¸Ñ*?Ó@×NÑNØ—‘óð ô & d§l¡l°d°VÑ&;Ó<Ð<ó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   Ú__annotations__r   Úfloatr   r   r   © r   r   r	   r	   	   s=   … ñð$ €GˆSÓØ€HˆeÓàð=˜$ð = 4ò =ó ñ=r   r	   N)Údataclassesr   Úmoviepy.audio.AudioClipr   Úmoviepy.Clipr   Úmoviepy.decoratorsr   Úmoviepy.Effectr   r	   r   r   r   ú<module>r"      s/   ðÝ !å :Ý Ý 1Ý !ð ô=�ó =ó ñ=r   