[beast: 11/12] BSE: change auto_activate default
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 11/12] BSE: change auto_activate default
- Date: Thu, 24 Sep 2015 20:10:11 +0000 (UTC)
commit b746bc7b14d5a2388f5f9d16be20d40a6bdf7ee4
Author: Tim Janik <timj gnu org>
Date: Tue Sep 22 21:07:48 2015 +0200
BSE: change auto_activate default
bse/bseapi.idl | 2 +-
bse/bsecsynth.cc | 1 +
bse/bsemidisynth.cc | 6 ------
bse/bsesnet.cc | 17 +++++++++--------
4 files changed, 11 insertions(+), 15 deletions(-)
---
diff --git a/bse/bseapi.idl b/bse/bseapi.idl
index 70a4695..ca54915 100644
--- a/bse/bseapi.idl
+++ b/bse/bseapi.idl
@@ -460,7 +460,7 @@ interface SNet : Super {
bool auto_activate = Bool (_("Auto Activate"),
_("Automatic activation only needs to be enabled for synthesis networks
that don't "
"use virtual ports for their input and output"),
- STANDARD, false);
+ STANDARD, true);
};
};
diff --git a/bse/bsecsynth.cc b/bse/bsecsynth.cc
index b016422..8ea5227 100644
--- a/bse/bsecsynth.cc
+++ b/bse/bsecsynth.cc
@@ -60,6 +60,7 @@ static void
bse_csynth_init (BseCSynth *self)
{
BSE_OBJECT_SET_FLAGS (self, BSE_SNET_FLAG_USER_SYNTH);
+ BSE_OBJECT_UNSET_FLAGS (self, BSE_SUPER_FLAG_NEEDS_CONTEXT);
}
static void
diff --git a/bse/bsemidisynth.cc b/bse/bsemidisynth.cc
index 686092b..0caf613 100644
--- a/bse/bsemidisynth.cc
+++ b/bse/bsemidisynth.cc
@@ -26,7 +26,6 @@ enum
PROP_VOLUME_f,
PROP_VOLUME_dB,
PROP_VOLUME_PERC,
- PROP_AUTO_ACTIVATE
};
@@ -458,11 +457,6 @@ bse_midi_synth_class_init (BseMidiSynthClass *klass)
bse_db_to_factor (0) * 100,
0, bse_db_to_factor (BSE_MAX_VOLUME_dB) * 100, 1,
SFI_PARAM_GUI ":dial"));
- bse_object_class_add_param (object_class, _("Playback Settings"),
- PROP_AUTO_ACTIVATE,
- sfi_pspec_bool ("auto_activate", NULL, NULL,
- TRUE, /* change default */
- /* override parent property: 0 */ "w"));
}
namespace Bse {
diff --git a/bse/bsesnet.cc b/bse/bsesnet.cc
index 84bf69a..83ea142 100644
--- a/bse/bsesnet.cc
+++ b/bse/bsesnet.cc
@@ -63,15 +63,16 @@ static const GBSearchConfig port_array_config = {
/* --- functions --- */
static void
-bse_snet_init (BseSNet *snet)
-{
- BSE_OBJECT_SET_FLAGS (snet, BSE_SNET_FLAG_USER_SYNTH);
- snet->sources = NULL;
- snet->isources = NULL;
- snet->iport_names = NULL;
- snet->oport_names = NULL;
- snet->port_array = NULL;
- snet->port_unregistered_id = 0;
+bse_snet_init (BseSNet *self)
+{
+ BSE_OBJECT_UNSET_FLAGS (self, BSE_SNET_FLAG_USER_SYNTH);
+ BSE_OBJECT_SET_FLAGS (self, BSE_SUPER_FLAG_NEEDS_CONTEXT);
+ self->sources = NULL;
+ self->isources = NULL;
+ self->iport_names = NULL;
+ self->oport_names = NULL;
+ self->port_array = NULL;
+ self->port_unregistered_id = 0;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]