def apply_to_audio(f, clip, *a, **k):
""" This decorator will apply the function f to the audio of
the clip created with f """
newclip = f(clip, *a, **k)
if hasattr(newclip, 'audio') and (newclip.audio is not None):
newclip.audio = f(newclip.audio, *a, **k)
return newclip
评论列表
文章目录