[beast: 11/15] BSE: remove unused bse_editable_sample_read_samples()
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 11/15] BSE: remove unused bse_editable_sample_read_samples()
- Date: Mon, 5 Oct 2015 22:53:05 +0000 (UTC)
commit c9220e16064ee4022322625457cc7abb8e7b17f4
Author: Tim Janik <timj gnu org>
Date: Fri Sep 25 11:33:01 2015 +0200
BSE: remove unused bse_editable_sample_read_samples()
bse/bseeditablesample.proc | 43 -------------------------------------------
1 files changed, 0 insertions(+), 43 deletions(-)
---
diff --git a/bse/bseeditablesample.proc b/bse/bseeditablesample.proc
index 1c4fc3a..43b19b3 100644
--- a/bse/bseeditablesample.proc
+++ b/bse/bseeditablesample.proc
@@ -144,49 +144,6 @@ METHOD (BseEditableSample, get-osc-freq) {
return Bse::ERROR_NONE;
}
-METHOD (BseEditableSample, read-samples) {
- HELP = ("Read a set of samples from a specific offset.");
- IN = bse_param_spec_object ("esample", "Editable Sample", NULL,
- BSE_TYPE_EDITABLE_SAMPLE, SFI_PARAM_STANDARD);
- IN = sfi_pspec_int ("voffset", NULL, "Value offset",
- 0, 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);
-} BODY (BseProcedureClass *proc,
- const GValue *in_values,
- GValue *out_values)
-{
- /* extract parameter values */
- BseEditableSample *esample = (BseEditableSample*) bse_value_get_object (in_values++);
- guint voffset = sfi_value_get_int (in_values++);
- GslDataCache *dcache = NULL;
- BseFloatSeq *fseq;
- /* check parameters */
- if (!BSE_IS_EDITABLE_SAMPLE (esample))
- return Bse::ERROR_PROC_PARAM_INVAL;
- if (BSE_EDITABLE_SAMPLE_OPENED (esample) && esample->wchunk)
- dcache = esample->wchunk->dcache;
- if (!dcache || voffset >= gsl_data_handle_length (dcache->dhandle))
- {
- fseq = bse_float_seq_new ();
- bse_float_seq_resize (fseq, 1024);
- }
- else
- {
- GslDataCacheNode *dnode = (GslDataCacheNode*) gsl_data_cache_ref_node (dcache, voffset,
GSL_DATA_CACHE_DEMAND_LOAD);
- guint i, l, dnode_length = dcache->node_size;
-
- l = dnode_length - (voffset - dnode->offset) + dcache->padding;
- l = MIN (l, gsl_data_handle_length (dcache->dhandle) - voffset);
- fseq = bse_float_seq_new ();
- bse_float_seq_resize (fseq, l);
- for (i = 0; i < l; i++)
- fseq->values[i] = dnode->data[voffset - dnode->offset + i];
- gsl_data_cache_unref_node (dcache, dnode);
- }
- /* set output parameters */
- g_value_take_boxed (out_values++, fseq);
- return Bse::ERROR_NONE;
-}
METHOD (BseEditableSample, collect-stats) {
HELP = ("Collect statistics from sample blocks as (minimum, maximum) pairs.");
IN = bse_param_spec_object ("esample", "Editable Sample", NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]