Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

filebaseaudio.C File Reference

#include "asset.h"
#include "byteorder.h"
#include "file.h"
#include "filebase.h"

Go to the source code of this file.

Defines

#define READ_8_MACRO
#define READ_16_MACRO
#define READ_24_MACRO
#define READ_ULAW_MACRO
#define LFEATHER_MACRO1
#define LFEATHER_MACRO2
#define CENTER_MACRO1
#define CENTER_MACRO2


Define Documentation

#define CENTER_MACRO1
 

Value:

for(; output_current < samples; \
                                        output_current++) \
                                {

Definition at line 203 of file filebaseaudio.C.

Referenced by FileBase::overlay_float_buffer(), and FileBase::raw_to_samples().

#define CENTER_MACRO2
 

Value:

out_buffer[output_current] += sample; \
                                }

Definition at line 208 of file filebaseaudio.C.

Referenced by FileBase::overlay_float_buffer(), and FileBase::raw_to_samples().

#define LFEATHER_MACRO1
 

Value:

for(feather_current = 0; feather_current < lfeather_len; \
                                        output_current++, feather_current++) \
                                {

Definition at line 193 of file filebaseaudio.C.

Referenced by FileBase::overlay_float_buffer(), and FileBase::raw_to_samples().

#define LFEATHER_MACRO2
 

Value:

current_gain = lfeather_gain + lfeather_slope * feather_current; \
                                        out_buffer[output_current] = out_buffer[output_current] * (1 - current_gain) + sample * current_gain; \
                                }

Definition at line 198 of file filebaseaudio.C.

Referenced by FileBase::overlay_float_buffer(), and FileBase::raw_to_samples().

#define READ_16_MACRO
 

Value:

sample = *inbuffer_16;                   \
                                sample /= 0x7fff; \
                                inbuffer_16 += input_frame;

Definition at line 173 of file filebaseaudio.C.

Referenced by FileBase::raw_to_samples().

#define READ_24_MACRO
 

Value:

sample = (unsigned char)*inbuffer_24++;  \
                                sample_24 = (unsigned char)*inbuffer_24++; \
                                sample_24 <<= 8;                           \
                                sample += sample_24;                       \
                                sample_24 = *inbuffer_24;                  \
                                sample_24 <<= 16;                          \
                                sample += sample_24;                       \
                                sample /= 0x7fffff; \
                                inbuffer_24 += input_frame; \

Definition at line 178 of file filebaseaudio.C.

Referenced by FileBase::raw_to_samples().

#define READ_8_MACRO
 

Value:

sample = *inbuffer_8;                   \
                                sample /= 0x7f; \
                                inbuffer_8 += input_frame;

Definition at line 168 of file filebaseaudio.C.

Referenced by FileBase::raw_to_samples().

#define READ_ULAW_MACRO
 

Value:

sample = ulawtofloat(*inbuffer_8);                   \
                                inbuffer_8 += input_frame;

Definition at line 189 of file filebaseaudio.C.

Referenced by FileBase::raw_to_samples().


Generated on Sun Jan 8 13:39:04 2006 for Cinelerra-svn by  doxygen 1.4.4