[beast: 7/13] BSE: rename BseFloatSeq to BseFlo4tSeq to make room for new bseapi.idl types
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 7/13] BSE: rename BseFloatSeq to BseFlo4tSeq to make room for new bseapi.idl types
- Date: Thu, 31 Aug 2017 23:03:54 +0000 (UTC)
commit fe3c0c9cbfdb67dbf6c32d9a43d8725893443b00
Author: Tim Janik <timj gnu org>
Date: Thu Aug 31 00:40:29 2017 +0200
BSE: rename BseFloatSeq to BseFlo4tSeq to make room for new bseapi.idl types
Signed-off-by: Tim Janik <timj gnu org>
beast-gtk/bstqsampler.cc | 2 +-
beast-gtk/bstscrollgraph.cc | 2 +-
bse/bsebasics.idl | 2 +-
bse/bseeditablesample.proc | 14 +++++++-------
bse/bseprobe.idl | 4 ++--
5 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/beast-gtk/bstqsampler.cc b/beast-gtk/bstqsampler.cc
index 4f6ace3..3db9336 100644
--- a/beast-gtk/bstqsampler.cc
+++ b/beast-gtk/bstqsampler.cc
@@ -1329,7 +1329,7 @@ qsampler_esample_filler (gpointer data,
BstQSampler *qsampler)
{
ESampleFiller *fill = (ESampleFiller*) data;
- BseFloatSeq *fseq;
+ BseFlo4tSeq *fseq;
voffset = voffset * fill->n_channels + fill->nth_channel;
fseq = bse_editable_sample_collect_stats (fill->esample,
voffset,
diff --git a/beast-gtk/bstscrollgraph.cc b/beast-gtk/bstscrollgraph.cc
index 0e07e09..95badaf 100644
--- a/beast-gtk/bstscrollgraph.cc
+++ b/beast-gtk/bstscrollgraph.cc
@@ -408,7 +408,7 @@ bst_scrollgraph_probes_notify (SfiProxy source,
if (probe && probe->probe_features->probe_fft && probe->fft_data->n_values == self->window_size)
{
gfloat *bar = BAR (self, self->n_bars - 1); /* update last bar */
- BseFloatSeq *fft = probe->fft_data;
+ BseFlo4tSeq *fft = probe->fft_data;
for (i = 0; i < MIN (self->n_points, FFTSZ2POINTS (fft->n_values)); i++)
{
gfloat re, im;
diff --git a/bse/bsebasics.idl b/bse/bsebasics.idl
index dd41261..7386ae7 100644
--- a/bse/bsebasics.idl
+++ b/bse/bsebasics.idl
@@ -23,7 +23,7 @@ Const MINDB = -96; /* 32bit:-192 24bit:-144 16bit:-96 */
sequence TypeSeq {
SfiString types;
};
-sequence FloatSeq {
+sequence Flo4tSeq {
Real values;
};
enum MidiControlType {
diff --git a/bse/bseeditablesample.proc b/bse/bseeditablesample.proc
index ecbd7a2..8d8064a 100644
--- a/bse/bseeditablesample.proc
+++ b/bse/bseeditablesample.proc
@@ -158,7 +158,7 @@ METHOD (BseEditableSample, collect-stats) {
0, 0, G_MAXINT, 1, SFI_PARAM_STANDARD);
IN = sfi_pspec_int ("max_pairs", NULL, "Maximum number of (min, max) pairs to collect",
1, 0, G_MAXINT, 1, SFI_PARAM_STANDARD);
- OUT = bse_param_spec_boxed ("sample_block", NULL, "Block of samples", BSE_TYPE_FLOAT_SEQ,
SFI_PARAM_STANDARD);
+ OUT = bse_param_spec_boxed ("sample_block", NULL, "Block of samples", BSE_TYPE_FLO4T_SEQ,
SFI_PARAM_STANDARD);
} BODY (BseProcedureClass *proc,
const GValue *in_values,
GValue *out_values)
@@ -171,7 +171,7 @@ METHOD (BseEditableSample, collect-stats) {
guint stepping = sfi_value_get_int (in_values++);
guint max_pairs = sfi_value_get_int (in_values++);
GslDataCache *dcache = NULL;
- BseFloatSeq *fseq;
+ BseFlo4tSeq *fseq;
/* check parameters */
if (!BSE_IS_EDITABLE_SAMPLE (esample) || stepping < 1)
return Bse::Error::PROC_PARAM_INVAL;
@@ -179,15 +179,15 @@ METHOD (BseEditableSample, collect-stats) {
dcache = esample->wchunk->dcache;
if (!dcache || voffset + block_size > gsl_data_handle_length (dcache->dhandle))
{
- fseq = bse_float_seq_new ();
- bse_float_seq_resize (fseq, max_pairs * 2);
+ fseq = bse_flo4t_seq_new ();
+ bse_flo4t_seq_resize (fseq, max_pairs * 2);
}
else
{
GslDataCacheNode *dnode = gsl_data_cache_ref_node (dcache, voffset, GSL_DATA_CACHE_DEMAND_LOAD);
guint j, dnode_length = dcache->node_size;
- fseq = bse_float_seq_new();
- bse_float_seq_resize (fseq, max_pairs * 2);
+ fseq = bse_flo4t_seq_new();
+ bse_flo4t_seq_resize (fseq, max_pairs * 2);
for (j = 0; j < max_pairs; j++)
{
guint i, cur_offset = j * offs_scale;
@@ -216,7 +216,7 @@ METHOD (BseEditableSample, collect-stats) {
}
gsl_data_cache_unref_node (dcache, dnode);
break_loops:
- bse_float_seq_resize (fseq, j * 2);
+ bse_flo4t_seq_resize (fseq, j * 2);
}
/* set output parameters */
g_value_take_boxed (out_values++, fseq);
diff --git a/bse/bseprobe.idl b/bse/bseprobe.idl
index de26ba4..35a9ffe 100644
--- a/bse/bseprobe.idl
+++ b/bse/bseprobe.idl
@@ -17,8 +17,8 @@ record Probe {
Real min; // FIXME: rename to range_min
Real max;
Real energie;
- FloatSeq sample_data;
- FloatSeq fft_data;
+ Flo4tSeq sample_data;
+ Flo4tSeq fft_data;
};
sequence ProbeSeq {
Probe probes;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]