File: sofa_hrtf.h

package info (click to toggle)
libspatialaudio 0.3.0%2Bgit20180730%2Bdfsg1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 468 kB
  • sloc: cpp: 2,293; ansic: 1,247; makefile: 5
file content (31 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef SOFA_HRTF_H
#define SOFA_HRTF_H

#include "config.h"

#ifdef HAVE_MYSOFA

#include <string>

#include <mysofa.h>

#include "hrtf.h"


class SOFA_HRTF : public HRTF
{
public:
    SOFA_HRTF(std::string path, unsigned i_sampleRate);
    ~SOFA_HRTF();
    bool get(float f_azimuth, float f_elevation, float **pfHRTF);

private:
    struct MYSOFA_EASY *hrtf;

    unsigned i_filterExtraLength;
    int i_internalLength;
};

#endif

#endif // SOFA_HRTF_H