~ubuntu-branches/debian/stretch/bristol/stretch

« back to all changes in this revision

Viewing changes to bristol/bristolexplorer.c

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-04-23 09:49:32 UTC
  • mfrom: (1.2.1 upstream) (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100423094932-btfvxmt11hv8dj4p
Tags: 0.60.0-4
* Switch back to deb format 1.0, bug#578693 has been fixed.
* Refresh and improvements, another attempt to fix FTBFS on
  hppa,sparc,s390.
* Drop debian/patches/02-implicit_pointer_conversion.patch patch,
  applied upstream.
* Patch to fix FTBFS on hurd-i386.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
3
 *  Diverse Bristol audio routines.
4
 
 *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2009
 
4
 *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2010
5
5
 *
6
6
 *
7
7
 *   This program is free software; you can redistribute it and/or modify
8
8
 *   it under the terms of the GNU General Public License as published by
9
 
 *   the Free Software Foundation; either version 2 of the License, or
 
9
 *   the Free Software Foundation; either version 3 of the License, or
10
10
 *   (at your option) any later version.
11
11
 *
12
12
 *   This program is distributed in the hope that it will be useful,
15
15
 *   GNU General Public License for more details.
16
16
 *
17
17
 *   You should have received a copy of the GNU General Public License
18
 
 *   along with this program; if not, write to the Free Software
19
 
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
 *   along with this program; if not, see <http://www.gnu.org/licenses/>.
20
19
 *
21
20
 */
22
21
/*#define DEBUG */
163
162
                                else
164
163
                                        baudio->mixflags |= FILTER_MODE;
165
164
                                break;
 
165
                        case 13:
 
166
                                ((bExp *) baudio->mixlocals)->noisegain = value;
 
167
                                break;
166
168
                }
167
169
        }
168
170
 
281
283
bristolVoice *voice, register float *startbuf)
282
284
{
283
285
        bristolbzero(noisebuf, audiomain->segmentsize);
 
286
        /* This should be in postops */
 
287
        bristolbzero(startbuf, audiomain->segmentsize);
284
288
        /*
285
289
         * Noise - we do this early for the same reason as oscillator 3
286
290
         */
589
593
         * any existing ext source signal).
590
594
         */
591
595
        if (baudio->mixflags & MIX_NOISE)
592
 
                bufmerge(noisebuf, 1.0, startbuf, 1.0, samplecount);
 
596
                bufmerge(noisebuf, bexplorer->noisegain, startbuf, 1.0, samplecount);
593
597
 
594
598
        /*
595
599
         * First oscillator
821
825
        /* Output conditioning, prevents filter self oscillation from overdrive */
822
826
        bufmerge(ba->leftbuf, 0.0, ba->leftbuf, 0.2, am->samplecount);
823
827
        bufmerge(ba->rightbuf, 0.0, ba->rightbuf, 0.2, am->samplecount);
824
 
        
 
828
 
825
829
        return(0);
826
830
}
827
831