LMMS
Loading...
Searching...
No Matches
HRTF.h
Go to the documentation of this file.
1/*
2 HRTF.h
3
4 Copyright 2002-5 Tim Goetze <tim@quitte.de>
5
6 http://quitte.de/dsp/
7
8 IIR filtering based on HRTF data sets
9
10*/
11/*
12 This program is free software; you can redistribute it and/or
13 modify it under the terms of the GNU General Public License
14 as published by the Free Software Foundation; either version 2
15 of the License, or (at your option) any later version.
16
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25 02111-1307, USA or point your web browser to http://www.gnu.org.
26*/
27
28#ifndef _HRTF_H_
29#define _HRTF_H_
30
31#include "dsp/util.h"
32
33class HRTF
34: public Plugin
35{
36 public:
37 int pan;
38 int n, h;
39
40 double x[32];
41
42 struct {
43 double * a, * b;
44 double y[32];
46
47 void set_pan (int p);
48
49 template <sample_func_t F>
50 void one_cycle (int frames);
51
52 public:
54
55 void init();
56 void activate()
57 {
58 set_pan ((int) *ports[1]);
59 }
60
61 void run (int n)
62 {
64 }
65
66 void run_adding (int n)
67 {
69 }
70};
71
72#endif /* _HRTF_H_ */
Definition HRTF.h:35
void activate()
Definition HRTF.h:56
double y[32]
Definition HRTF.h:44
double x[32]
Definition HRTF.h:40
int pan
Definition HRTF.h:37
int n
Definition HRTF.h:38
int h
Definition HRTF.h:38
static PortInfo port_info[]
Definition HRTF.h:53
void run(int n)
Definition HRTF.h:61
void run_adding(int n)
Definition HRTF.h:66
void set_pan(int p)
void one_cycle(int frames)
void init()
double * a
Definition HRTF.h:43
double * b
Definition HRTF.h:43
Definition basics.h:174
sample_t ** ports
Definition basics.h:182
struct @113205115357366127300225113341150224053346037032::@137033172036070230260373056156374243321245367362 left
struct @113205115357366127300225113341150224053346037032::@137033172036070230260373056156374243321245367362 right
Definition basics.h:94
uch * p
Definition crypt.c:594