diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2005-10-06 19:10:57 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2005-10-06 19:10:57 +0000 |
commit | 4c509656223d3ed1f0fab504cb483090d38972f9 (patch) | |
tree | 540f207b81f957fa78101d67da3094ff1e1f9456 /libs/ardour/import.cc | |
parent | 5a52d8fee4c9abac7ffb1f1e6464785d979acd68 (diff) |
fix compose mess, and a number of 64 bit printf specs
git-svn-id: svn://localhost/trunk/ardour2@51 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/import.cc')
-rw-r--r-- | libs/ardour/import.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/ardour/import.cc b/libs/ardour/import.cc index b9ebe5859e..3411481a3a 100644 --- a/libs/ardour/import.cc +++ b/libs/ardour/import.cc @@ -66,7 +66,7 @@ Session::import_audiofile (import_status& status) string tmp_convert_file; if ((in = sf_open (status.pathname.c_str(), SFM_READ, &info)) == 0) { - error << compose(_("Import: cannot open input sound file \"%1\""), status.pathname) << endmsg; + error << string_compose(_("Import: cannot open input sound file \"%1\""), status.pathname) << endmsg; return -1; } else { if ((uint32_t) info.samplerate != frame_rate()) { @@ -75,12 +75,12 @@ Session::import_audiofile (import_status& status) // resample to session frame_rate if (sample_rate_convert(status, status.pathname, tmp_convert_file)) { if ((in = sf_open (tmp_convert_file.c_str(), SFM_READ, &info)) == 0) { - error << compose(_("Import: cannot open converted sound file \"%1\""), tmp_convert_file) << endmsg; + error << string_compose(_("Import: cannot open converted sound file \"%1\""), tmp_convert_file) << endmsg; return -1; } } else if (!status.cancel){ // error - error << compose(_("Import: error while resampling sound file \"%1\""), status.pathname) << endmsg; + error << string_compose(_("Import: error while resampling sound file \"%1\""), status.pathname) << endmsg; return -1; } else { // canceled @@ -136,7 +136,7 @@ Session::import_audiofile (import_status& status) } catch (failed_constructor& err) { - error << compose(_("Session::import_audiofile: cannot open new file source for channel %1"), n+1) << endmsg; + error << string_compose(_("Session::import_audiofile: cannot open new file source for channel %1"), n+1) << endmsg; goto out; } @@ -309,7 +309,7 @@ Session::sample_rate_convert (import_status& status, string infile, string& outf outfile = build_tmp_convert_name(infile); SNDFILE* out = sf_open(outfile.c_str(), SFM_RDWR, &sf_info); if(!out) { - error << compose(_("Import: could not open temp file: %1"), outfile) << endmsg; + error << string_compose(_("Import: could not open temp file: %1"), outfile) << endmsg; return false; } @@ -318,7 +318,7 @@ Session::sample_rate_convert (import_status& status, string infile, string& outf /* Initialize the sample rate converter. */ if ((src_state = src_new (SRC_SINC_BEST_QUALITY, sf_info.channels, &err)) == 0) { - error << compose(_("Import: src_new() failed : %1"), src_strerror (err)) << endmsg ; + error << string_compose(_("Import: src_new() failed : %1"), src_strerror (err)) << endmsg ; return false ; } @@ -346,7 +346,7 @@ Session::sample_rate_convert (import_status& status, string infile, string& outf } if ((err = src_process (src_state, &src_data))) { - error << compose(_("Import: %1"), src_strerror (err)) << endmsg ; + error << string_compose(_("Import: %1"), src_strerror (err)) << endmsg ; return false ; } |