~ubuntu-branches/ubuntu/saucy/faust/saucy

« back to all changes in this revision

Viewing changes to architecture/bench.cpp

  • Committer: Package Import Robot
  • Author(s): Mario Lang
  • Date: 2012-04-04 13:52:01 UTC
  • mfrom: (1.1.6) (3.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20120404135201-hpsrk87x3hga94tc
Tags: 0.9.46-2
* Fix "ftbfs with GCC-4.7":
  - debian/patches/unistd: Include <unistd.h> where necessary.
    (Closes: #667163)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//#include "../bench/lmbench.h"
2
 
// derived from bench.cpp to test parallel processing
 
1
/************************************************************************
 
2
 
 
3
        IMPORTANT NOTE : this file contains two clearly delimited sections : 
 
4
        the ARCHITECTURE section (in two parts) and the USER section. Each section 
 
5
        is governed by its own copyright and license. Please check individually 
 
6
        each section for license and copyright information.
 
7
*************************************************************************/
 
8
 
 
9
/*******************BEGIN ARCHITECTURE SECTION (part 1/2)****************/
 
10
 
 
11
/************************************************************************
 
12
    FAUST Architecture File
 
13
        Copyright (C) 2003-2011 GRAME, Centre National de Creation Musicale
 
14
    ---------------------------------------------------------------------
 
15
    This Architecture section is free software; you can redistribute it 
 
16
    and/or modify it under the terms of the GNU General Public License 
 
17
        as published by the Free Software Foundation; either version 3 of 
 
18
        the License, or (at your option) any later version.
 
19
 
 
20
    This program is distributed in the hope that it will be useful,
 
21
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
22
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
23
    GNU General Public License for more details.
 
24
 
 
25
    You should have received a copy of the GNU General Public License 
 
26
        along with this program; If not, see <http://www.gnu.org/licenses/>.
 
27
 
 
28
        EXCEPTION : As a special exception, you may create a larger work 
 
29
        that contains this FAUST architecture section and distribute  
 
30
        that work under terms of your choice, so long as this FAUST 
 
31
        architecture section is not modified. 
 
32
 
 
33
 
 
34
 ************************************************************************
 
35
 ************************************************************************/
3
36
 
4
37
 
5
38
/* link with  */
239
272
        virtual void init(int samplingRate)                                                     = 0;
240
273
        virtual void compute(int len, float** inputs, float** outputs)  = 0;
241
274
};
242
 
 
243
 
 
 
275
                
 
276
/********************END ARCHITECTURE SECTION (part 1/2)****************/
 
277
 
 
278
/**************************BEGIN USER SECTION **************************/
 
279
                
244
280
<<includeclass>>
245
281
 
 
282
/***************************END USER SECTION ***************************/
 
283
 
 
284
/*******************BEGIN ARCHITECTURE SECTION (part 2/2)***************/
 
285
                                        
246
286
mydsp   DSP;
247
287
 
248
288
 
369
409
}
370
410
 
371
411
 
 
412
/********************END ARCHITECTURE SECTION (part 2/2)****************/
372
413
 
373
414
 
374
415