fixed peak waveform issue introduced by the ftruncate preallocation of peakfile....
authorJesse Chappell <jesse@essej.net>
Thu, 28 Dec 2006 08:40:58 +0000 (08:40 +0000)
committerJesse Chappell <jesse@essej.net>
Thu, 28 Dec 2006 08:40:58 +0000 (08:40 +0000)
commit64c308042c52d35fcc30fbd9ae19480b629df8c0
tree2be40be85275b064f00b2822f485120c6926ca07
parent5c0764e90d43cb7b0f6195071a47c9232b91bfb7
fixed peak waveform issue introduced by the ftruncate preallocation of peakfile.  also prevented that ftruncate from actually reducing the size of the peakfile in the case of destructive tracks.  changed the sources PeaksReady semantics back to emitting only on peak completion on normal tracks.  truncate peakfiles back to natural size on finish to prevent wasting disk space on shorter takes.

git-svn-id: svn://localhost/ardour2/trunk@1250 d708f5d6-7413-0410-9779-e7cbd77b26cf
libs/ardour/ardour/audiosource.h
libs/ardour/audiofilesource.cc
libs/ardour/audiosource.cc
libs/ardour/sndfilesource.cc