Migrate off ConsoleWriterFactory
This commit is contained in:
parent
631c473acc
commit
3831e83535
2 changed files with 5 additions and 6 deletions
|
@ -353,7 +353,7 @@ void CJamRecorder::OnEnd()
|
||||||
|
|
||||||
if (fi.exists())
|
if (fi.exists())
|
||||||
{
|
{
|
||||||
tsConsole << "CJamRecorder::OnEnd() - " << fi.absolutePath() << " exists and will not be overwritten." << endl;
|
qWarning() << "CJamRecorder::OnEnd():" << fi.absolutePath() << "exists and will not be overwritten.";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -361,7 +361,7 @@ void CJamRecorder::OnEnd()
|
||||||
outf.open(QFile::WriteOnly);
|
outf.open(QFile::WriteOnly);
|
||||||
QTextStream out(&outf);
|
QTextStream out(&outf);
|
||||||
out << CReaperProject(currentSession->Tracks()).toString() << endl;
|
out << CReaperProject(currentSession->Tracks()).toString() << endl;
|
||||||
tsConsole << "Session RPP: " << reaperProjectFileName << endl;
|
qDebug() << "Session RPP:" << reaperProjectFileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
delete currentSession;
|
delete currentSession;
|
||||||
|
@ -397,7 +397,7 @@ void CJamRecorder::SessionDirToReaper(QString& strSessionDirName)
|
||||||
|
|
||||||
out << CReaperProject(CJamSession::TracksFromSessionDir(fiSessionDir.absoluteFilePath())).toString() << endl;
|
out << CReaperProject(CJamSession::TracksFromSessionDir(fiSessionDir.absoluteFilePath())).toString() << endl;
|
||||||
|
|
||||||
(*(new ConsoleWriterFactory())->get()) << "Session RPP: " << reaperProjectFileName << endl;
|
qDebug() << "Session RPP:" << reaperProjectFileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -408,11 +408,11 @@ void CJamRecorder::OnDisconnected(int iChID)
|
||||||
{
|
{
|
||||||
if (!isRecording)
|
if (!isRecording)
|
||||||
{
|
{
|
||||||
tsConsole << "CJamRecorder::OnDisconnected: channel " << iChID << " disconnected but not recording" << endl;
|
qWarning() << "CJamRecorder::OnDisconnected: channel" << iChID << "disconnected but not recording";
|
||||||
}
|
}
|
||||||
if (currentSession == nullptr)
|
if (currentSession == nullptr)
|
||||||
{
|
{
|
||||||
tsConsole << "CJamRecorder::OnDisconnected: channel " << iChID << " disconnected but no currentSession" << endl;
|
qWarning() << "CJamRecorder::OnDisconnected: channel" << iChID << "disconnected but no currentSession";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
currentSession->DisconnectClient(iChID);
|
currentSession->DisconnectClient(iChID);
|
||||||
|
|
|
@ -170,7 +170,6 @@ private:
|
||||||
|
|
||||||
bool isRecording;
|
bool isRecording;
|
||||||
CJamSession* currentSession;
|
CJamSession* currentSession;
|
||||||
QTextStream& tsConsole = *((new ConsoleWriterFactory())->get());
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue