Mercurial > hg > svcore
diff data/model/WritableWaveFileModel.cpp @ 1731:601851995f4b by-id
Introduce Model to ById
author | Chris Cannam |
---|---|
date | Fri, 21 Jun 2019 13:37:00 +0100 |
parents | 26da177d7266 |
children | 52705a328b34 |
line wrap: on
line diff
--- a/data/model/WritableWaveFileModel.cpp Thu Jun 20 14:57:39 2019 +0100 +++ b/data/model/WritableWaveFileModel.cpp Fri Jun 21 13:37:00 2019 +0100 @@ -96,7 +96,8 @@ // so the filename only needs to be unique within that - // model ID should be ok QDir dir(TempDirectory::getInstance()->getPath()); - path = dir.filePath(QString("written_%1.wav").arg(getId())); + path = dir.filePath(QString("written_%1.wav") + .arg(getId().toString())); } catch (const DirectoryCreationFailed &f) { SVCERR << "WritableWaveFileModel: Failed to create temporary directory" << endl; return; @@ -126,7 +127,8 @@ // Temp dir is exclusive to this run of the application, so // the filename only needs to be unique within that QDir dir(TempDirectory::getInstance()->getPath()); - m_temporaryPath = dir.filePath(QString("prenorm_%1.wav").arg(getId())); + m_temporaryPath = dir.filePath(QString("prenorm_%1.wav") + .arg(getId().toString())); m_temporaryWriter = new WavFileWriter (m_temporaryPath, m_sampleRate, m_channels,