diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-10-06 12:37:44 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-10-06 12:37:44 +0200 |
commit | fa5b7e32e12b6310c93a9d3c1c4654f61c0f6679 (patch) | |
tree | d00adbf15d1393b127b83b8e415128c9b849456c /src/audioextractor.cc | |
parent | 0e2db9214ff3d6cbe4388224f405bc5d67d6a8d3 (diff) |
Make relative paths cross-platform.
Diffstat (limited to 'src/audioextractor.cc')
-rw-r--r-- | src/audioextractor.cc | 6 |
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(); |