dumb_resample.cpp File Reference

#include <math.h>
#include "dumb_resample.h"

Include dependency graph for dumb_resample.cpp:

Go to the source code of this file.

Namespaces

namespace  audiere

Defines

#define HEAVYASSERT(cond)
#define MULSC(a, b)   ((int)((LONG_LONG)((a) << 4) * ((b) << 12) >> 32))
#define LOOP4(iterator, CONTENT)

Functions

void audiere::dumb_reset_resampler (DUMB_RESAMPLER *resampler, sample_t *src, long pos, long start, long end)
DUMB_RESAMPLERaudiere::dumb_start_resampler (sample_t *src, long pos, long start, long end)
long audiere::dumb_resample (DUMB_RESAMPLER *resampler, sample_t *dst, long dst_size, float volume, float delta)
sample_t audiere::dumb_resample_get_current_sample (DUMB_RESAMPLER *resampler, float volume)
void audiere::dumb_end_resampler (DUMB_RESAMPLER *resampler)

Variables

int audiere::dumb_resampling_quality = 2


Define Documentation

#define HEAVYASSERT cond   ) 
 

Definition at line 57 of file dumb_resample.cpp.

Referenced by audiere::dumb_resample(), and audiere::dumb_resample_get_current_sample().

#define LOOP4 iterator,
CONTENT   ) 
 

Value:

{ \
        if ((iterator) & 2) { \
                CONTENT; \
                CONTENT; \
        } \
        if ((iterator) & 1) { \
                CONTENT; \
        } \
        (iterator) >>= 2; \
        while (iterator) { \
                CONTENT; \
                CONTENT; \
                CONTENT; \
                CONTENT; \
                (iterator)--; \
        } \
}

Definition at line 153 of file dumb_resample.cpp.

Referenced by audiere::dumb_resample().

#define MULSC a,
 )     ((int)((LONG_LONG)((a) << 4) * ((b) << 12) >> 32))
 

Definition at line 64 of file dumb_resample.cpp.

Referenced by audiere::dumb_resample(), and audiere::dumb_resample_get_current_sample().


Generated on Mon Feb 13 23:08:10 2006 for audiere by  doxygen 1.4.6