Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

snd_dsp.cpp File Reference

#include "stdafx.h"
#include "sndfile.h"

Include dependency graph for snd_dsp.cpp:

Go to the source code of this file.

Defines

#define nDolbyHiFltAttn   6
#define nDolbyHiFltMask   3
#define DOLBYATTNROUNDUP   31
#define XBASS_DELAY   14
#define XBASSBUFFERSIZE   64
#define FILTERBUFFERSIZE   64
#define SURROUNDBUFFERSIZE   ((MAX_SAMPLE_RATE * 50) / 1000)
#define REVERBBUFFERSIZE   ((MAX_SAMPLE_RATE * 200) / 1000)
#define REVERBBUFFERSIZE2   ((REVERBBUFFERSIZE*13) / 17)
#define REVERBBUFFERSIZE3   ((REVERBBUFFERSIZE*7) / 13)
#define REVERBBUFFERSIZE4   ((REVERBBUFFERSIZE*7) / 19)

Functions

static UINT GetMaskFromSize (UINT len)

Variables

static LONG nXBassSum = 0
static LONG nXBassBufferPos = 0
static LONG nXBassDlyPos = 0
static LONG nXBassMask = 0
static LONG nLeftNR = 0
static LONG nRightNR = 0
static LONG nSurroundSize = 0
static LONG nSurroundPos = 0
static LONG nDolbyDepth = 0
static LONG nDolbyLoDlyPos = 0
static LONG nDolbyLoFltPos = 0
static LONG nDolbyLoFltSum = 0
static LONG nDolbyHiFltPos = 0
static LONG nDolbyHiFltSum = 0
static LONG nReverbSize = 0
static LONG nReverbBufferPos = 0
static LONG nReverbSize2 = 0
static LONG nReverbBufferPos2 = 0
static LONG nReverbSize3 = 0
static LONG nReverbBufferPos3 = 0
static LONG nReverbSize4 = 0
static LONG nReverbBufferPos4 = 0
static LONG nReverbLoFltSum = 0
static LONG nReverbLoFltPos = 0
static LONG nReverbLoDlyPos = 0
static LONG nFilterAttn = 0
static LONG gRvbLowPass [8]
static LONG gRvbLPPos = 0
static LONG gRvbLPSum = 0
static LONG ReverbLoFilterBuffer [XBASSBUFFERSIZE]
static LONG ReverbLoFilterDelay [XBASSBUFFERSIZE]
static LONG ReverbBuffer [REVERBBUFFERSIZE]
static LONG ReverbBuffer2 [REVERBBUFFERSIZE2]
static LONG ReverbBuffer3 [REVERBBUFFERSIZE3]
static LONG ReverbBuffer4 [REVERBBUFFERSIZE4]
static LONG XBassBuffer [XBASSBUFFERSIZE]
static LONG XBassDelay [XBASSBUFFERSIZE]
static LONG DolbyLoFilterBuffer [XBASSBUFFERSIZE]
static LONG DolbyLoFilterDelay [XBASSBUFFERSIZE]
static LONG DolbyHiFilterBuffer [FILTERBUFFERSIZE]
static LONG SurroundBuffer [SURROUNDBUFFERSIZE]
int MixSoundBuffer [MIXBUFFERSIZE *2]
int MixReverbBuffer [MIXBUFFERSIZE *2]


Define Documentation

#define DOLBYATTNROUNDUP   31
 

Definition at line 22 of file snd_dsp.cpp.

Referenced by CSoundFile::ProcessStereoDSP().

#define FILTERBUFFERSIZE   64
 

Definition at line 34 of file snd_dsp.cpp.

#define nDolbyHiFltAttn   6
 

Definition at line 20 of file snd_dsp.cpp.

Referenced by CSoundFile::ProcessStereoDSP().

#define nDolbyHiFltMask   3
 

Definition at line 21 of file snd_dsp.cpp.

Referenced by CSoundFile::ProcessStereoDSP().

#define REVERBBUFFERSIZE   ((MAX_SAMPLE_RATE * 200) / 1000)
 

Definition at line 36 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP().

#define REVERBBUFFERSIZE2   ((REVERBBUFFERSIZE*13) / 17)
 

Definition at line 37 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP().

#define REVERBBUFFERSIZE3   ((REVERBBUFFERSIZE*7) / 13)
 

Definition at line 38 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP().

#define REVERBBUFFERSIZE4   ((REVERBBUFFERSIZE*7) / 19)
 

Definition at line 39 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP().

#define SURROUNDBUFFERSIZE   ((MAX_SAMPLE_RATE * 50) / 1000)
 

Definition at line 35 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP().

#define XBASS_DELAY   14
 

Definition at line 30 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP().

#define XBASSBUFFERSIZE   64
 

Definition at line 33 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP().


Function Documentation

static UINT GetMaskFromSize UINT  len  )  [static]
 

Definition at line 109 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP().


Variable Documentation

LONG DolbyHiFilterBuffer[FILTERBUFFERSIZE] [static]
 

Definition at line 101 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG DolbyLoFilterBuffer[XBASSBUFFERSIZE] [static]
 

Definition at line 99 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG DolbyLoFilterDelay[XBASSBUFFERSIZE] [static]
 

Definition at line 100 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG gRvbLowPass[8] [static]
 

Definition at line 87 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG gRvbLPPos = 0 [static]
 

Definition at line 88 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG gRvbLPSum = 0 [static]
 

Definition at line 89 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

int MixReverbBuffer[MIXBUFFERSIZE *2]
 

Definition at line 24 of file fastmix.cpp.

Referenced by CSoundFile::CreateStereoMix(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

int MixSoundBuffer[MIXBUFFERSIZE *2]
 

Definition at line 20 of file fastmix.cpp.

LONG nDolbyDepth = 0 [static]
 

Definition at line 66 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG nDolbyHiFltPos = 0 [static]
 

Definition at line 70 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG nDolbyHiFltSum = 0 [static]
 

Definition at line 71 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG nDolbyLoDlyPos = 0 [static]
 

Definition at line 67 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG nDolbyLoFltPos = 0 [static]
 

Definition at line 68 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG nDolbyLoFltSum = 0 [static]
 

Definition at line 69 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG nFilterAttn = 0 [static]
 

Definition at line 86 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nLeftNR = 0 [static]
 

Definition at line 60 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nReverbBufferPos = 0 [static]
 

Definition at line 76 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nReverbBufferPos2 = 0 [static]
 

Definition at line 78 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nReverbBufferPos3 = 0 [static]
 

Definition at line 80 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nReverbBufferPos4 = 0 [static]
 

Definition at line 82 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nReverbLoDlyPos = 0 [static]
 

Definition at line 85 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nReverbLoFltPos = 0 [static]
 

Definition at line 84 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nReverbLoFltSum = 0 [static]
 

Definition at line 83 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nReverbSize = 0 [static]
 

Definition at line 75 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nReverbSize2 = 0 [static]
 

Definition at line 77 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nReverbSize3 = 0 [static]
 

Definition at line 79 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nReverbSize4 = 0 [static]
 

Definition at line 81 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nRightNR = 0 [static]
 

Definition at line 61 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG nSurroundPos = 0 [static]
 

Definition at line 65 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG nSurroundSize = 0 [static]
 

Definition at line 64 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG nXBassBufferPos = 0 [static]
 

Definition at line 55 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nXBassDlyPos = 0 [static]
 

Definition at line 56 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nXBassMask = 0 [static]
 

Definition at line 57 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG nXBassSum = 0 [static]
 

Definition at line 54 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG ReverbBuffer[REVERBBUFFERSIZE] [static]
 

Definition at line 92 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG ReverbBuffer2[REVERBBUFFERSIZE2] [static]
 

Definition at line 93 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG ReverbBuffer3[REVERBBUFFERSIZE3] [static]
 

Definition at line 94 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG ReverbBuffer4[REVERBBUFFERSIZE4] [static]
 

Definition at line 95 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG ReverbLoFilterBuffer[XBASSBUFFERSIZE] [static]
 

Definition at line 90 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG ReverbLoFilterDelay[XBASSBUFFERSIZE] [static]
 

Definition at line 91 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG SurroundBuffer[SURROUNDBUFFERSIZE] [static]
 

Definition at line 102 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), and CSoundFile::ProcessStereoDSP().

LONG XBassBuffer[XBASSBUFFERSIZE] [static]
 

Definition at line 97 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().

LONG XBassDelay[XBASSBUFFERSIZE] [static]
 

Definition at line 98 of file snd_dsp.cpp.

Referenced by CSoundFile::InitializeDSP(), CSoundFile::ProcessMonoDSP(), and CSoundFile::ProcessStereoDSP().


Generated on Sat Nov 5 16:25:30 2005 for OPIE by  doxygen 1.4.2