[beast: 6/8] BSE: Bus: use C++ methods to disconnect busses



commit 70fe3288cd4e3d6729b0e9aef565367c5d24cb86
Author: Tim Janik <timj gnu org>
Date:   Fri Sep 18 11:17:21 2015 +0200

    BSE: Bus: use C++ methods to disconnect busses

 bse/bsebus.cc |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/bse/bsebus.cc b/bse/bsebus.cc
index 20e7399..751a5f2 100644
--- a/bse/bsebus.cc
+++ b/bse/bsebus.cc
@@ -632,11 +632,18 @@ static void
 bus_uncross_input (BseItem *owner,
                    BseItem *item)
 {
-  /* delete item via procedure so deletion is recorded to undo */
+  // delete item via undoable method for undo-rcording
   if (BSE_IS_TRACK (item))
-    bse_item_exec_void (owner, "disconnect-track", item);
+    {
+      Bse::BusImpl &self = *owner->as<Bse::BusImpl*>();
+      self.disconnect_track (*item->as<Bse::TrackImpl*>());
+    }
   else /* IS_BUS */
-    bse_item_exec_void (owner, "disconnect-bus", item);
+    {
+      Bse::BusImpl &self = *owner->as<Bse::BusImpl*>();
+      Bse::BusImpl &bus = *item->as<Bse::BusImpl*>();
+      self.disconnect_bus (bus);
+    }
 }
 
 Bse::ErrorType


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]