[beast: 2/13] BST: adjust to use WaveOsc.request_pcm_position()
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 2/13] BST: adjust to use WaveOsc.request_pcm_position()
- Date: Thu, 31 Aug 2017 23:03:28 +0000 (UTC)
commit 2e2dcb2123765c4a484e26066eaecd5546a0cc15
Author: Tim Janik <timj gnu org>
Date: Wed Aug 30 12:39:06 2017 +0200
BST: adjust to use WaveOsc.request_pcm_position()
Signed-off-by: Tim Janik <timj gnu org>
beast-gtk/bstplayback.cc | 6 +++---
beast-gtk/bstplayback.hh | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/beast-gtk/bstplayback.cc b/beast-gtk/bstplayback.cc
index 7ee7c49..644689d 100644
--- a/beast-gtk/bstplayback.cc
+++ b/beast-gtk/bstplayback.cc
@@ -25,8 +25,8 @@ bst_play_back_handle_new (void)
handle->snet = handle->project.create_csynth ("");
handle->snet.auto_activate (true);
handle->speaker = handle->snet.create_source ("BsePcmOutput");
- handle->wosc1 = handle->snet.create_source ("BseWaveOsc");
- handle->wosc2 = handle->snet.create_source ("BseWaveOsc");
+ handle->wosc1 = Bse::WaveOscH::down_cast (handle->snet.create_source ("BseWaveOsc"));
+ handle->wosc2 = Bse::WaveOscH::down_cast (handle->snet.create_source ("BseWaveOsc"));
bse_proxy_set (handle->wosc2.proxy_id(), "channel", 2, NULL);
handle->speaker.set_input_by_id (0, handle->wosc1, 0);
handle->speaker.set_input_by_id (1, handle->wosc2, 0);
@@ -123,7 +123,7 @@ pcm_timer (gpointer data)
GDK_THREADS_ENTER ();
if (!handle->waiting_for_notify)
{
- bse_wave_osc_request_pcm_position (handle->wosc1.proxy_id());
+ handle->wosc1.request_pcm_position();
handle->waiting_for_notify = TRUE;
}
GDK_THREADS_LEAVE ();
diff --git a/beast-gtk/bstplayback.hh b/beast-gtk/bstplayback.hh
index 3a743bd..6b9f976 100644
--- a/beast-gtk/bstplayback.hh
+++ b/beast-gtk/bstplayback.hh
@@ -14,7 +14,7 @@ typedef struct
Bse::ProjectH project;
Bse::SNetH snet;
Bse::SourceH speaker;
- Bse::SourceH wosc1, wosc2;
+ Bse::WaveOscH wosc1, wosc2;
Bse::SourceH constant;
guint current_delay;
guint pcm_timeout;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]