diff options
author | Taybin Rutkin <taybin@taybin.com> | 2006-05-07 17:17:38 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2006-05-07 17:17:38 +0000 |
commit | c67a576d611759154976ee19b8faf78583474f97 (patch) | |
tree | 096af5a51658aba7ab3b42bf88466970c621ed7c /libs/ardour | |
parent | c091b877cfe1937d138b47638e2dcf7f5cbf84e5 (diff) |
Improved sfdb API.
Eliminated some warnings on Darwin.
Added libxslt to scons.
git-svn-id: svn://localhost/trunk/ardour2@494 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/SConscript | 1 | ||||
-rw-r--r-- | libs/ardour/externalsource.cc | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/SConscript b/libs/ardour/SConscript index 80cd36750e..9bbd9bc270 100644 --- a/libs/ardour/SConscript +++ b/libs/ardour/SConscript @@ -184,6 +184,7 @@ ardour.Merge ([ libraries['pbd3'], libraries['soundtouch'], libraries['midi++2'], + libraries['xslt'], ]) diff --git a/libs/ardour/externalsource.cc b/libs/ardour/externalsource.cc index 4fb102a4a0..7f478b6f53 100644 --- a/libs/ardour/externalsource.cc +++ b/libs/ardour/externalsource.cc @@ -76,7 +76,11 @@ ExternalSource::peak_path (string audio_path) stat (mp.c_str(), &stat_mount); char buf[32]; +#ifdef __APPLE__ + snprintf (buf, sizeof (buf), "%u-%u-%d.peak", stat_mount.st_ino, stat_file.st_ino, channel); +#else snprintf (buf, sizeof (buf), "%ld-%ld-%d.peak", stat_mount.st_ino, stat_file.st_ino, channel); +#endif string res = peak_dir; res += buf; |