summaryrefslogtreecommitdiff
path: root/src/audioextractor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/audioextractor.cc')
-rw-r--r--src/audioextractor.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audioextractor.cc b/src/audioextractor.cc
index cf6e9e9..b9b743a 100644
--- a/src/audioextractor.cc
+++ b/src/audioextractor.cc
@@ -168,12 +168,12 @@ void AudioExtractor::exportSelections()
}
// Create output path:
- QString path = exportpath + "/" + prefix + "/samples";
+ QString path = exportpath + QDir::separator() + prefix + QDir::separator() + "samples";
QDir d;
d.mkpath(path);
// Write all sample chunks to single output file:
- QString file = path + "/" + QString::number(idx) + "-" + prefix + ".wav";
+ QString file = path + QDir::separator() + QString::number(idx) + "-" + prefix + ".wav";
SF_INFO sf_info;
sf_info.format = SF_FORMAT_WAV | SF_FORMAT_FLOAT;
@@ -274,7 +274,7 @@ void AudioExtractor::exportSelections()
}
}
- QFile xmlfile(exportpath + "/" + prefix + "/" + prefix + ".xml");
+ QFile xmlfile(exportpath + QDir::separator() + prefix + QDir::separator() + prefix + ".xml");
xmlfile.open(QIODevice::WriteOnly);
xmlfile.write(doc.toByteArray());
xmlfile.close();