13
0

Use ARDOUR::peakfile_suffix in audiofilesource.cc

git-svn-id: svn://localhost/ardour2/trunk@1966 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2007-06-07 03:23:51 +00:00
parent f3b51babe3
commit 3c446f0920

View File

@ -42,6 +42,7 @@
#include <ardour/sndfilesource.h> #include <ardour/sndfilesource.h>
#include <ardour/session.h> #include <ardour/session.h>
#include <ardour/source_factory.h> #include <ardour/source_factory.h>
#include <ardour/filename_extensions.h>
// if these headers come before sigc++ is included // if these headers come before sigc++ is included
// the parser throws ObjC++ errors. (nil is a keyword) // the parser throws ObjC++ errors. (nil is a keyword)
@ -171,13 +172,14 @@ AudioFileSource::old_peak_path (ustring audio_path)
char buf[32]; char buf[32];
#ifdef __APPLE__ #ifdef __APPLE__
snprintf (buf, sizeof (buf), "%u-%u-%d.peak", stat_mount.st_ino, stat_file.st_ino, _channel); snprintf (buf, sizeof (buf), "%u-%u-%d", stat_mount.st_ino, stat_file.st_ino, _channel);
#else #else
snprintf (buf, sizeof (buf), "%ld-%ld-%d.peak", stat_mount.st_ino, stat_file.st_ino, _channel); snprintf (buf, sizeof (buf), "%ld-%ld-%d", stat_mount.st_ino, stat_file.st_ino, _channel);
#endif #endif
ustring res = peak_dir; ustring res = peak_dir;
res += buf; res += buf;
res += peakfile_suffix;
return res; return res;
} }