Pass frame size to Reaper project from recorder
This commit is contained in:
parent
e4ac2f472d
commit
ec2673eaa1
2 changed files with 4 additions and 4 deletions
|
@ -363,7 +363,7 @@ void CJamRecorder::OnEnd()
|
|||
QFile outf (reaperProjectFileName);
|
||||
outf.open(QFile::WriteOnly);
|
||||
QTextStream out(&outf);
|
||||
out << CReaperProject(currentSession->Tracks()).toString() << endl;
|
||||
out << CReaperProject(currentSession->Tracks(), iServerFrameSizeSamples).toString() << endl;
|
||||
qDebug() << "Session RPP:" << reaperProjectFileName;
|
||||
}
|
||||
|
||||
|
@ -376,7 +376,7 @@ void CJamRecorder::OnEnd()
|
|||
* @brief CJamRecorder::SessionDirToReaper Replica of CJamRecorder::OnEnd() but using the directory contents to construct the CReaperProject object
|
||||
* @param strSessionDirName
|
||||
*/
|
||||
void CJamRecorder::SessionDirToReaper(QString& strSessionDirName)
|
||||
void CJamRecorder::SessionDirToReaper(QString& strSessionDirName, int serverFrameSizeSamples)
|
||||
{
|
||||
const QFileInfo fiSessionDir(QDir::cleanPath(strSessionDirName));
|
||||
if (!fiSessionDir.exists() || !fiSessionDir.isDir())
|
||||
|
@ -398,7 +398,7 @@ void CJamRecorder::SessionDirToReaper(QString& strSessionDirName)
|
|||
}
|
||||
QTextStream out(&outf);
|
||||
|
||||
out << CReaperProject(CJamSession::TracksFromSessionDir(fiSessionDir.absoluteFilePath())).toString() << endl;
|
||||
out << CReaperProject( CJamSession::TracksFromSessionDir(fiSessionDir.absoluteFilePath()), serverFrameSizeSamples ).toString() << endl;
|
||||
|
||||
qDebug() << "Session RPP:" << reaperProjectFileName;
|
||||
}
|
||||
|
|
|
@ -142,7 +142,7 @@ public:
|
|||
|
||||
void Init( const CServer* server, const int _iServerFrameSizeSamples );
|
||||
|
||||
static void SessionDirToReaper(QString& strSessionDirName);
|
||||
static void SessionDirToReaper( QString& strSessionDirName, int serverFrameSizeSamples );
|
||||
|
||||
public slots:
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue