"Fossies" - the Fresh Open Source Software Archive

Member "snd-20.9/sndins/sndins.h" (19 Nov 2014, 4061 Bytes) of package /linux/misc/snd-20.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "sndins.h" see the Fossies "Dox" file reference documentation.

    1 /* sndins.h -- Sndins for Snd/CLM
    2  *
    3  * Copyright (c) 2003-2014 Michael Scholz <mi-scholz@users.sourceforge.net>
    4  * All rights reserved.
    5  *
    6  * Redistribution and use in source and binary forms, with or without
    7  * modification, are permitted provided that the following conditions
    8  * are met:
    9  * 1. Redistributions of source code must retain the above copyright
   10  *    notice, this list of conditions and the following disclaimer.
   11  * 2. Redistributions in binary form must reproduce the above copyright
   12  *    notice, this list of conditions and the following disclaimer in the
   13  *    documentation and/or other materials provided with the distribution.
   14  *
   15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   16  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   17  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   18  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   19  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   20  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   21  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   22  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   23  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   24  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   25  * SUCH DAMAGE.
   26  *
   27  * @(#)sndins.h 1.6 11/18/14
   28  */
   29 
   30 #ifndef _SNDINS_H_
   31 #define _SNDINS_H_
   32 
   33 #undef __BEGIN_DECLS
   34 #undef __END_DECLS
   35 #ifdef __cplusplus
   36 #define __BEGIN_DECLS   extern "C" {
   37 #define __END_DECLS }
   38 #else
   39 #define __BEGIN_DECLS
   40 #define __END_DECLS
   41 #endif
   42 
   43 __BEGIN_DECLS
   44 
   45 mus_any        *mus_make_fcomb(mus_float_t scaler, int size,
   46             mus_float_t a0, mus_float_t a1);
   47 int     mus_fcomb_p(mus_any *ptr);
   48 mus_float_t mus_fcomb(mus_any *ptr, mus_float_t input, mus_float_t ignored);
   49 
   50 mus_long_t  ins_fm_violin(mus_float_t start, mus_float_t dur,
   51             mus_float_t freq, mus_float_t amp, mus_float_t fm_index,
   52             mus_float_t *amp_env, int amp_len,
   53             mus_float_t periodic_vibrato_rate,
   54             mus_float_t periodic_vibrato_amp,
   55             mus_float_t random_vibrato_rate, 
   56             mus_float_t random_vibrato_amp, mus_float_t noise_freq,
   57             mus_float_t noise_amount, mus_float_t ind_noise_freq, 
   58             mus_float_t ind_noise_amount, mus_float_t amp_noise_freq, 
   59             mus_float_t amp_noise_amount, mus_float_t *gliss_env, 
   60             int gliss_len, mus_float_t gliss_amount, 
   61             mus_float_t *fm1_env, int fm1_len, 
   62             mus_float_t *fm2_env, int fm2_len, 
   63             mus_float_t *fm3_env, int fm3_len,
   64             mus_float_t fm1_rat, mus_float_t fm2_rat, 
   65             mus_float_t fm3_rat, mus_float_t fm1_index, 
   66             mus_float_t fm2_index, mus_float_t fm3_index, 
   67             mus_float_t base, mus_float_t degree, 
   68             mus_float_t distance, mus_float_t reverb_amount, 
   69             bool index_type, bool no_waveshaping, mus_any *out, 
   70             mus_any *rev, mus_interp_t mode);
   71 mus_long_t  ins_jc_reverb(mus_float_t start, mus_float_t dur, 
   72             mus_float_t volume, bool low_pass, bool doubled, 
   73             mus_float_t delay1, mus_float_t delay2, 
   74             mus_float_t delay3, mus_float_t delay4, 
   75             mus_float_t *amp_env, int amp_len, 
   76             mus_any *out, mus_any *rev);
   77 mus_long_t  ins_nrev(mus_float_t start, mus_float_t dur, 
   78             mus_float_t reverb_factor, mus_float_t lp_coeff, 
   79             mus_float_t lp_out_coeff, mus_float_t output_scale, 
   80             mus_float_t volume, mus_float_t *amp_env, int amp_len, 
   81             mus_any *out, mus_any *rev);
   82 mus_long_t  ins_freeverb(mus_float_t start, mus_float_t dur, 
   83             mus_float_t room_decay, mus_float_t damping, 
   84             mus_float_t global, mus_float_t predelay, 
   85             mus_float_t output_gain, mus_float_t scale_room_decay, 
   86             mus_float_t offset_room_decay, mus_float_t scale_damping, 
   87             mus_float_t stereo_spread, int *combtuning, int comb_len, 
   88             int *allpasstuning, int all_len, vct *output_mixer, 
   89             mus_any *out, mus_any *rev);
   90 
   91 void        Init_sndins(void);
   92 
   93 __END_DECLS
   94 
   95 #endif              /* _SNDINS_H_ */
   96 
   97 /*
   98  * sndins.h ends here
   99  */