mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
GUI use updated XML::read_buffer API
This commit is contained in:
parent
705ac7bfc5
commit
1e380b1e2e
3 changed files with 5 additions and 5 deletions
|
|
@ -672,7 +672,7 @@ ExportVideoDialog::launch_export ()
|
||||||
XMLTree tree;
|
XMLTree tree;
|
||||||
std::string vtl_samplerate = audio_samplerate_combo.get_active_text();
|
std::string vtl_samplerate = audio_samplerate_combo.get_active_text();
|
||||||
std::string vtl_normalize = _normalize ? "true" : "false";
|
std::string vtl_normalize = _normalize ? "true" : "false";
|
||||||
tree.read_buffer(std::string(
|
tree.read_buffer(std::string (
|
||||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
|
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
|
||||||
"<ExportFormatSpecification name=\"VTL-WAV-16\" id=\"3094591e-ccb9-4385-a93f-c9955ffeb1f0\">"
|
"<ExportFormatSpecification name=\"VTL-WAV-16\" id=\"3094591e-ccb9-4385-a93f-c9955ffeb1f0\">"
|
||||||
" <Encoding id=\"F_WAV\" type=\"T_Sndfile\" extension=\"wav\" name=\"WAV\" has-sample-format=\"true\" channel-limit=\"256\"/>"
|
" <Encoding id=\"F_WAV\" type=\"T_Sndfile\" extension=\"wav\" name=\"WAV\" has-sample-format=\"true\" channel-limit=\"256\"/>"
|
||||||
|
|
@ -703,7 +703,7 @@ ExportVideoDialog::launch_export ()
|
||||||
" </Silence>"
|
" </Silence>"
|
||||||
" </Processing>"
|
" </Processing>"
|
||||||
"</ExportFormatSpecification>"
|
"</ExportFormatSpecification>"
|
||||||
));
|
).c_str());
|
||||||
boost::shared_ptr<ExportFormatSpecification> fmp = _session->get_export_handler()->add_format(*tree.root());
|
boost::shared_ptr<ExportFormatSpecification> fmp = _session->get_export_handler()->add_format(*tree.root());
|
||||||
|
|
||||||
/* set up range */
|
/* set up range */
|
||||||
|
|
|
||||||
|
|
@ -1207,7 +1207,7 @@ SoundFileBrowser::freesound_search()
|
||||||
void
|
void
|
||||||
SoundFileBrowser::handle_freesound_results(std::string theString) {
|
SoundFileBrowser::handle_freesound_results(std::string theString) {
|
||||||
XMLTree doc;
|
XMLTree doc;
|
||||||
doc.read_buffer( theString );
|
doc.read_buffer (theString.c_str());
|
||||||
XMLNode *root = doc.root();
|
XMLNode *root = doc.root();
|
||||||
|
|
||||||
if (!root) {
|
if (!root) {
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ static int export_session (Session *session,
|
||||||
|
|
||||||
XMLTree tree;
|
XMLTree tree;
|
||||||
|
|
||||||
tree.read_buffer(std::string(
|
tree.read_buffer(std::string (
|
||||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
|
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
|
||||||
"<ExportFormatSpecification name=\"UTIL-WAV-EXPORT\" id=\"b1280899-0459-4aef-9dc9-7e2277fa6d24\">"
|
"<ExportFormatSpecification name=\"UTIL-WAV-EXPORT\" id=\"b1280899-0459-4aef-9dc9-7e2277fa6d24\">"
|
||||||
" <Encoding id=\"F_WAV\" type=\"T_Sndfile\" extension=\"wav\" name=\"WAV\" has-sample-format=\"true\" channel-limit=\"256\"/>"
|
" <Encoding id=\"F_WAV\" type=\"T_Sndfile\" extension=\"wav\" name=\"WAV\" has-sample-format=\"true\" channel-limit=\"256\"/>"
|
||||||
|
|
@ -122,7 +122,7 @@ static int export_session (Session *session,
|
||||||
" </Silence>"
|
" </Silence>"
|
||||||
" </Processing>"
|
" </Processing>"
|
||||||
"</ExportFormatSpecification>"
|
"</ExportFormatSpecification>"
|
||||||
));
|
).c_str());
|
||||||
|
|
||||||
boost::shared_ptr<ExportFormatSpecification> fmp = session->get_export_handler()->add_format(*tree.root());
|
boost::shared_ptr<ExportFormatSpecification> fmp = session->get_export_handler()->add_format(*tree.root());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue