File: SpeakersBinauralizer.h

package info (click to toggle)
libspatialaudio 0.3.0%2Bgit20180730%2Bdfsg1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 468 kB
  • sloc: cpp: 2,293; ansic: 1,247; makefile: 5
file content (33 lines) | stat: -rw-r--r-- 718 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
32
33
#ifndef BINAURALIZER_H
#define BINAURALIZER_H

#include <vector>

#include "AmbisonicCommons.h"
#include "BFormat.h"
#include "AmbisonicSpeaker.h"
#include "AmbisonicBinauralizer.h"


/** Binaural decoder. */

class SpeakersBinauralizer : public CAmbisonicBinauralizer
{
public:
    SpeakersBinauralizer();
    bool Configure(unsigned nSampleRate,
                   unsigned nBlockSize,
                   CAmbisonicSpeaker *speakers,
                   unsigned nSpeakers,
                   unsigned& tailLength,
                   std::string HRTFPath = "");

    void Process(float** pBFSrc, float** ppfDst);

protected:
    unsigned m_nSpeakers;

    virtual void AllocateBuffers();
};

#endif // BINAURALIZER_H