File: ReverbSoundFilter.h

package info (click to toggle)
transcend 0.3.dfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 5,796 kB
  • ctags: 3,074
  • sloc: cpp: 26,886; ansic: 693; sh: 210; makefile: 99; perl: 67
file content (63 lines) | stat: -rw-r--r-- 927 bytes parent folder | download | duplicates (6)
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
/*
 * Modification History
 *
 * 2004-July-22   Jason Rohrer
 * Created.
 */



#ifndef REVERB_SOUND_FILTER_INCLUDED
#define REVERB_SOUND_FILTER_INCLUDED



#include "SoundFilter.h"



/**
 * A reverb filter.
 *
 * @author Jason Rohrer
 */
class ReverbSoundFilter : public SoundFilter {

        

    public:

        

        /**
         * Constructs a filter.
         *
         * @param inDelayInSamples the delay of the reverb.
         * @param inGain the gain level in the range [0,1].
         */
        ReverbSoundFilter( unsigned long inDelayInSamples, double inGain );

        

        virtual ~ReverbSoundFilter();


        
        // implements the SoundFilter interface
        virtual SoundSamples *filterSamples( SoundSamples *inSamples );

        

    private:
        
        SoundSamples *mDelayBuffer;
        
        double mGain;


        unsigned long mDelayBufferPosition;
    };



#endif