[beast: 6/13] BST: adjust to use WaveOsc.sync_seek_perc()
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 6/13] BST: adjust to use WaveOsc.sync_seek_perc()
- Date: Thu, 31 Aug 2017 23:03:49 +0000 (UTC)
commit dd5213e33f688334b420e5daf13855f1d8737ad5
Author: Tim Janik <timj gnu org>
Date: Thu Aug 31 00:23:12 2017 +0200
BST: adjust to use WaveOsc.sync_seek_perc()
Signed-off-by: Tim Janik <timj gnu org>
beast-gtk/bstplayback.cc | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/beast-gtk/bstplayback.cc b/beast-gtk/bstplayback.cc
index 7e2e4fe..ee5c0c8 100644
--- a/beast-gtk/bstplayback.cc
+++ b/beast-gtk/bstplayback.cc
@@ -65,17 +65,15 @@ bst_play_back_handle_start (BstPlayBackHandle *handle)
}
void
-bst_play_back_handle_seek_perc (BstPlayBackHandle *handle,
- gfloat perc)
+bst_play_back_handle_seek_perc (BstPlayBackHandle *handle, float perc)
{
- BseIt3mSeq *iseq = bse_it3m_seq_new();
- bse_it3m_seq_append (iseq, handle->wosc1.proxy_id());
+ Bse::WaveOscSeq woscs;
+ woscs.push_back (handle->wosc1);
if (handle->wosc2)
- bse_it3m_seq_append (iseq, handle->wosc2.proxy_id());
- bse_wave_osc_mass_seek_perc (iseq, perc);
+ woscs.push_back (handle->wosc2);
+ handle->wosc1.sync_seek_perc (perc, woscs);
if (handle->waiting_for_notify)
handle->discard_next_notify = TRUE;
- bse_it3m_seq_free (iseq);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]