Matching creation of new session source with recent changes on

SessionSource.
This commit is contained in:
brunoherbelin
2021-01-30 22:45:27 +01:00
parent 9215be6bfc
commit e26052013c
2 changed files with 3 additions and 4 deletions

View File

@@ -475,7 +475,7 @@ void ImGuiVisitor::visit (SessionSource& s)
ImGuiToolkit::Icon(s.icon().x, s.icon().y);
ImGui::SameLine(0, 10);
ImGui::Text("Session File");
ImGui::Text("%s", SystemToolkit::base_filename(s.path()).c_str());
// ImGui::Text("%s", SystemToolkit::base_filename(s.path()).c_str());
if (ImGuiToolkit::ButtonIcon(3, 2)) s.session()->setFading(0.f);
float f = s.session()->fading();

View File

@@ -252,7 +252,7 @@ Source * Mixer::createSourceFile(const std::string &path)
if ( ext == "mix" )
{
// create a session source
SessionSource *ss = new SessionSource();
SessionSource *ss = new SessionSource;
ss->load(path);
s = ss;
}
@@ -824,7 +824,7 @@ void Mixer::open(const std::string& filename)
Log::Info("\nStarting transition to session %s", filename.c_str());
// create special SessionSource to be used for the smooth transition
SessionSource *ts = new SessionSource();
SessionSource *ts = new SessionSource;
// open filename if specified
if (!filename.empty())
ts->load(filename);
@@ -998,7 +998,6 @@ void Mixer::close()
{
// create empty SessionSource to be used for the smooth transition
SessionSource *ts = new SessionSource;
ts->load();
// insert source and switch to transition view
insertSource(ts, View::TRANSITION);