[beast: 4/13] BST: adjust to use WaveOsc.set_from_editable_sample()



commit 0b52496a86c42db2f9ea0882e9878dc7e3017632
Author: Tim Janik <timj gnu org>
Date:   Wed Aug 30 14:54:22 2017 +0200

    BST: adjust to use WaveOsc.set_from_editable_sample()
    
    Signed-off-by: Tim Janik <timj gnu org>

 beast-gtk/bstplayback.cc |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/beast-gtk/bstplayback.cc b/beast-gtk/bstplayback.cc
index 644689d..7e2e4fe 100644
--- a/beast-gtk/bstplayback.cc
+++ b/beast-gtk/bstplayback.cc
@@ -49,8 +49,9 @@ bst_play_back_handle_set (BstPlayBackHandle *handle,
     assert_return (BSE_IS_EDITABLE_SAMPLE (esample));
 
   bse_proxy_set (handle->constant.proxy_id(), "frequency_1", osc_freq, NULL);
-  bse_wave_osc_set_from_editable_sample (handle->wosc1.proxy_id(), esample);
-  bse_wave_osc_set_from_editable_sample (handle->wosc2.proxy_id(), esample);
+  Bse::EditableSampleH es = Bse::EditableSampleH::down_cast (bse_server.from_proxy (esample));
+  handle->wosc1.set_from_editable_sample (es);
+  handle->wosc2.set_from_editable_sample (es);
 }
 
 void


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