[beast] BSE: Added current_musical_tuning accessor for C++ plugins.
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast] BSE: Added current_musical_tuning accessor for C++ plugins.
- Date: Sun, 8 May 2011 17:23:03 +0000 (UTC)
commit 670c70ec711977714e7fc671907f830fc6bd4154
Author: Stefan Westerfeld <stefan space twc de>
Date: Mon Jun 14 10:59:49 2010 +0200
BSE: Added current_musical_tuning accessor for C++ plugins.
Introduced Effect::current_musical_tuning(), which can be used to make C++
plugins tuning aware.
bse/bsecxxmodule.cc | 7 +++++++
bse/bsecxxmodule.hh | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/bse/bsecxxmodule.cc b/bse/bsecxxmodule.cc
index 89bd304..450d893 100644
--- a/bse/bsecxxmodule.cc
+++ b/bse/bsecxxmodule.cc
@@ -429,6 +429,13 @@ Effect::max_block_size() const
return BSE_STREAM_MAX_VALUES;
}
+BseMusicalTuningType
+Effect::current_musical_tuning() const
+{
+ BseSource *source = cast (const_cast <Effect*> (this));
+ return bse_item_current_musical_tuning (BSE_ITEM (source));
+}
+
void
Effect::class_init (CxxBaseClass *klass)
{
diff --git a/bse/bsecxxmodule.hh b/bse/bsecxxmodule.hh
index 8795837..c144024 100644
--- a/bse/bsecxxmodule.hh
+++ b/bse/bsecxxmodule.hh
@@ -159,6 +159,8 @@ protected:
BseTrans *trans);
unsigned int block_size () const;
unsigned int max_block_size () const;
+public: /* FIXME: make this protected as soon as the modules have their own current_musical_tuning() accessor */
+ BseMusicalTuningType current_musical_tuning () const;
};
/* implement Bse::Effect and Bse::SynthesisModule methods */
#define BSE_EFFECT_INTEGRATE_MODULE(ObjectType,ModuleType,ParamType) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]