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

audioidevice.C File Reference

#include "audiodevice.h"
#include "condition.h"
#include "dcoffset.h"
#include "bcprogressbox.h"

Go to the source code of this file.

Defines

#define GET_PEAK_MACRO
#define GET_8BIT_SAMPLE_MACRO1
#define GET_8BIT_SAMPLE_MACRO2   sample /= 0x7f;
#define GET_16BIT_SAMPLE_MACRO1
#define GET_16BIT_SAMPLE_MACRO2   sample /= 0x7fff;
#define GET_24BIT_SAMPLE_MACRO1
#define GET_24BIT_SAMPLE_MACRO2   sample /= 0x7fffff;
#define GET_32BIT_SAMPLE_MACRO1
#define GET_32BIT_SAMPLE_MACRO2   sample /= 0x7fffffff;


Define Documentation

#define GET_16BIT_SAMPLE_MACRO1
 

Value:

sample = input_buffer_16[k];                               \
if(dither_scale) { dither_value = rand() % dither_scale; sample -= dither_value; } \
sample -= dc_offset_value;                                    \
k += input_channels;                                       \
if(sample >= max_sample[i]) { sample = max_sample[i]; if(over_count < 3) over_count++; } \
else                                                       \
if(sample <= min_sample[i]) { sample = min_sample[i]; if(over_count < 3) over_count++; } \
else                                                       \
if(over_count < 3) over_count = 0;                         \

Definition at line 49 of file audioidevice.C.

Referenced by AudioDevice::read_buffer().

#define GET_16BIT_SAMPLE_MACRO2   sample /= 0x7fff;
 

Definition at line 60 of file audioidevice.C.

Referenced by AudioDevice::read_buffer().

#define GET_24BIT_SAMPLE_MACRO1
 

Value:

sample = (unsigned char)input_buffer[k] | \
                        (((unsigned char)input_buffer[k + 1]) << 8) | \
                        (((int)input_buffer[k + 2]) << 16); \
sample -= dc_offset_value; \
k += input_channels * 3; \
if(sample >= max_sample[i]) { sample = max_sample[i]; if(over_count < 3) over_count++; } \
else                                                 \
if(sample <= min_sample[i]) { sample = min_sample[i]; if(over_count < 3) over_count++; } \
else                                                 \
if(over_count < 3) over_count = 0;

Definition at line 65 of file audioidevice.C.

Referenced by AudioDevice::read_buffer().

#define GET_24BIT_SAMPLE_MACRO2   sample /= 0x7fffff;
 

Definition at line 77 of file audioidevice.C.

Referenced by AudioDevice::read_buffer().

#define GET_32BIT_SAMPLE_MACRO1
 

Value:

sample = (unsigned char)input_buffer[k] | \
                        (((unsigned char)input_buffer[k + 1]) << 8) | \
                        (((unsigned char)input_buffer[k + 2]) << 16) | \
                        (((int)input_buffer[k + 3]) << 24); \
sample -= dc_offset_value; \
k += input_channels * 4; \
if(sample >= max_sample[i]) { sample = max_sample[i]; if(over_count < 3) over_count++; } \
else \
if(sample <= min_sample[i]) { sample = min_sample[i]; if(over_count < 3) over_count++; } \
else \
if(over_count < 3) over_count = 0;

Definition at line 82 of file audioidevice.C.

Referenced by AudioDevice::read_buffer().

#define GET_32BIT_SAMPLE_MACRO2   sample /= 0x7fffffff;
 

Definition at line 95 of file audioidevice.C.

Referenced by AudioDevice::read_buffer().

#define GET_8BIT_SAMPLE_MACRO1
 

Value:

sample = input_buffer[k];      \
sample -= dc_offset_value;        \
k += input_channels;           \
if(sample >= max_sample[i]) { sample = max_sample[i]; if(over_count < 3) over_count++; } \
else                           \
if(sample <= min_sample[i]) { sample = min_sample[i]; if(over_count < 3) over_count++; } \
else                           \
if(over_count < 3) over_count = 0;

Definition at line 34 of file audioidevice.C.

Referenced by AudioDevice::read_buffer().

#define GET_8BIT_SAMPLE_MACRO2   sample /= 0x7f;
 

Definition at line 44 of file audioidevice.C.

Referenced by AudioDevice::read_buffer().

#define GET_PEAK_MACRO
 

Value:

input_channel[j] = sample;                          \
                                        if(sample > max[i]) max[i] = sample;           \
                                        else if(-sample > max[i]) max[i] = -sample;

Definition at line 26 of file audioidevice.C.

Referenced by AudioDevice::read_buffer().


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