# MPASource(char "filename" , bool "normalize")
# directly opens mp1/2/3 files and normalizes output to 100% if requested
#
# Take care when testing: by opening the AVS-script the whole file gets scanned in order to return the exact sample number
#   when normalize=false (default) this is done with partial decoding (~20sec for one hour audio on my PC)
#   when normalize=true it is much slower (~100sec)
# Version 0.2 creates a small file .D2A after the first scan, so there is no multiple scanning necessary
#
# when backward jumps are requested the seeking is always done in fast mode from frame 0 to the requested frame
# 
# along with the audio a small 8x8 video is generated, so you always have to put MPASource as SECOND argument in AudioDub
#
# Version 0.2 (c) Ernst Pech - 2003-01-31
#


LoadPlugin("C:\myprojects\mpasource25\release\mpasource.dll")
V=BlankClip(height=100, width=100, length=20000, fps=25)

A=MPASource( "d:\_mp3\pop\liquido - narcotic.mp3", normalize = false) 

AudioDub(V,A)

trim(1000,1000+10*25)

