This file is indexed.

/usr/include/libtgvoip/EchoCanceller.h is in libtgvoip-dev 1.0.3-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//
// libtgvoip is free and unencumbered public domain software.
// For more information, see http://unlicense.org or the UNLICENSE file
// you should have received with this source code distribution.
//

#ifndef LIBTGVOIP_ECHOCANCELLER_H
#define LIBTGVOIP_ECHOCANCELLER_H

#include "threading.h"
#include "BufferPool.h"
#include "BlockingQueue.h"
#include "MediaStreamItf.h"

namespace tgvoip{
class EchoCanceller{

public:
	EchoCanceller(bool enableAEC, bool enableNS, bool enableAGC);
	virtual ~EchoCanceller();
	virtual void Start();
	virtual void Stop();
	void SpeakerOutCallback(unsigned char* data, size_t len);
	void Enable(bool enabled);
	void ProcessInput(unsigned char* data, unsigned char* out, size_t len);
	void SetAECStrength(int strength);

private:
	bool enableAEC;
	bool enableAGC;
	bool enableNS;
#ifndef TGVOIP_NO_DSP
	static void* StartBufferFarendThread(void* arg);
	void RunBufferFarendThread();
	bool didBufferFarend;
	tgvoip_mutex_t aecMutex;
	void* aec;
	void* splittingFilter; // webrtc::SplittingFilter
	void* splittingFilterIn; // webrtc::IFChannelBuffer
	void* splittingFilterOut; // webrtc::IFChannelBuffer
	void* splittingFilterFarend; // webrtc::SplittingFilter
	void* splittingFilterFarendIn; // webrtc::IFChannelBuffer
	void* splittingFilterFarendOut; // webrtc::IFChannelBuffer
	tgvoip_thread_t bufferFarendThread;
	BlockingQueue<int16_t*>* farendQueue;
	BufferPool* farendBufferPool;
	bool running;
	void* ns; // NsxHandle
	void* agc;
	int32_t agcMicLevel;
#endif
};

	class AudioEffect{
	public:
		virtual ~AudioEffect()=0;
		virtual void Process(int16_t* inOut, size_t numSamples)=0;
		virtual void SetPassThrough(bool passThrough);
	protected:
		bool passThrough;
	};

	class AutomaticGainControl : public AudioEffect{
	public:
		AutomaticGainControl();
		virtual ~AutomaticGainControl();
		virtual void Process(int16_t* inOut, size_t numSamples);

	private:
		void* agc;
		void* splittingFilter;
		void* splittingFilterIn;
		void* splittingFilterOut;
		int32_t agcMicLevel;
	};
};

#endif //LIBTGVOIP_ECHOCANCELLER_H