[beast: 8/13] BSE: bseapi.idl: add FloatSeq, commented EditableSample API



commit 0d4eacbb3652e9ee6427fd64245be7b2a426c441
Author: Tim Janik <timj gnu org>
Date:   Thu Aug 31 00:34:06 2017 +0200

    BSE: bseapi.idl: add FloatSeq, commented EditableSample API
    
    Signed-off-by: Tim Janik <timj gnu org>

 bse/bseapi.idl |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/bse/bseapi.idl b/bse/bseapi.idl
index 539257a..04761fd 100644
--- a/bse/bseapi.idl
+++ b/bse/bseapi.idl
@@ -802,8 +802,28 @@ record SampleFileInfo {
   Error      error   = Enum ("Error", "Indicator for errors during sample operation", STANDARD);
 };
 
+/// A list of floating point values.
+sequence FloatSeq {
+  float64 floats;
+};
+
 /// Interface for editable PCM wave samples.
 interface EditableSample : Item {
+  /** Collect statistics from sample blocks as (minimum, maximum) pairs.
+   * @param voffset       Offset of first stat block
+   * @param offset-scale  Factor to scale voffset increments with
+   * @param block-size    Block size to compute stat pairs from
+   * @param stepping      Stepping within a stat block
+   * @param max-pairs     Maximum number of (min, max) pairs to collect
+   * @return              Block of samples
+   */
+  //FloatSeq    collect_stats  (int64 voffset, float64 offset_scale, int64 block_size, int64 stepping, int64 
max_pairs);
+  //void        close          (); ///< Close an opened sample.
+  //int64       get_length     (); ///< Return the number of values in the sample.
+  //int64       get_n_channels (); ///< Return the number of channels in the sample.
+  //float64     get_osc_freq   (); ///< Return the oscillator frequency for the sample.
+  //Error       open           (); ///< Open the sample for reading.
+  //signal void changed        (); ///< Signal indicating all sorts of possible changes.
 };
 
 /// Interface for PCM wave samples.


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