LMMS
Loading...
Searching...
No Matches
Blip_Buffer.h File Reference
#include <limits.h>
#include <assert.h>

Go to the source code of this file.

Classes

class  Blip_Buffer
class  Blip_Synth_Fast_
class  Blip_Synth_
class  Blip_Synth< quality, range >
class  blip_eq_t
class  Silent_Blip_Buffer
class  Blip_Reader

Macros

#define BLIP_BUFFER_ACCURACY   16
#define BLIP_PHASE_BITS   6
#define BLIP_RESTRICT
#define BLIP_READER_BEGIN(name, blip_buffer)
#define BLIP_READER_BASS(blip_buffer)
#define BLIP_READER_READ(name)
#define BLIP_READER_READ_RAW(name)
#define BLIP_READER_NEXT(name, bass)
#define BLIP_READER_END(name, blip_buffer)
#define BLIP_FWD(i)
#define BLIP_REV(r)

Typedefs

typedef int blip_long
typedef unsigned blip_ulong
typedef blip_long blip_time_t
typedef short blip_sample_t
typedef blip_ulong blip_resampled_time_t

Enumerations

enum  { blip_sample_max = 32767 }

Variables

int const blip_widest_impulse_ = 16
int const blip_buffer_extra_ = blip_widest_impulse_ + 2
int const blip_res = 1 << BLIP_PHASE_BITS
const int blip_med_quality = 8
const int blip_good_quality = 12
const int blip_high_quality = 16
int const blip_sample_bits = 30
int const blip_reader_default_bass = 9
const long blip_unscaled = 65535
const int blip_low_quality = blip_med_quality
const int blip_best_quality = blip_high_quality
int const blip_max_length = 0
int const blip_default_length = 250

Macro Definition Documentation

◆ BLIP_BUFFER_ACCURACY

#define BLIP_BUFFER_ACCURACY   16

◆ BLIP_FWD

#define BLIP_FWD ( i)
Value:
{\
blip_long t0 = i0 * delta + buf [fwd + i];\
blip_long t1 = imp [blip_res * (i + 1)] * delta + buf [fwd + 1 + i];\
i0 = imp [blip_res * (i + 2)];\
buf [fwd + i] = t0;\
buf [fwd + 1 + i] = t1;\
}
int blip_long
Definition Blip_Buffer.h:13
int const blip_res
Definition Blip_Buffer.h:150
register unsigned i
Definition inflate.c:1575

◆ BLIP_PHASE_BITS

#define BLIP_PHASE_BITS   6

◆ BLIP_READER_BASS

#define BLIP_READER_BASS ( blip_buffer)
Value:
((blip_buffer).bass_shift_)

◆ BLIP_READER_BEGIN

#define BLIP_READER_BEGIN ( name,
blip_buffer )
Value:
const Blip_Buffer::buf_t_* BLIP_RESTRICT name##_reader_buf = (blip_buffer).buffer_;\
blip_long name##_reader_accum = (blip_buffer).reader_accum_
#define BLIP_RESTRICT
Definition Blip_Buffer.h:275
blip_time_t buf_t_
Definition Blip_Buffer.h:109
static const char * name
Definition pugl.h:1582

◆ BLIP_READER_END

#define BLIP_READER_END ( name,
blip_buffer )
Value:
(void) ((blip_buffer).reader_accum_ = name##_reader_accum)
#define void
Definition unzip.h:396

◆ BLIP_READER_NEXT

#define BLIP_READER_NEXT ( name,
bass )
Value:
(void) (name##_reader_accum += *name##_reader_buf++ - (name##_reader_accum >> (bass)))

◆ BLIP_READER_READ

#define BLIP_READER_READ ( name)
Value:
(name##_reader_accum >> (blip_sample_bits - 16))
int const blip_sample_bits
Definition Blip_Buffer.h:257

◆ BLIP_READER_READ_RAW

#define BLIP_READER_READ_RAW ( name)
Value:
(name##_reader_accum)

◆ BLIP_RESTRICT

#define BLIP_RESTRICT

◆ BLIP_REV

#define BLIP_REV ( r)
Value:
{\
blip_long t0 = i0 * delta + buf [rev - r];\
blip_long t1 = imp [blip_res * r] * delta + buf [rev + 1 - r];\
i0 = imp [blip_res * (r - 1)];\
buf [rev - r] = t0;\
buf [rev + 1 - r] = t1;\
}
int r
Definition crypt.c:458

Typedef Documentation

◆ blip_long

typedef int blip_long

◆ blip_resampled_time_t

◆ blip_sample_t

typedef short blip_sample_t

◆ blip_time_t

◆ blip_ulong

typedef unsigned blip_ulong

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
blip_sample_max 

Variable Documentation

◆ blip_best_quality

const int blip_best_quality = blip_high_quality

◆ blip_buffer_extra_

int const blip_buffer_extra_ = blip_widest_impulse_ + 2

◆ blip_default_length

int const blip_default_length = 250

◆ blip_good_quality

const int blip_good_quality = 12

◆ blip_high_quality

const int blip_high_quality = 16

◆ blip_low_quality

const int blip_low_quality = blip_med_quality

◆ blip_max_length

int const blip_max_length = 0

◆ blip_med_quality

const int blip_med_quality = 8

◆ blip_reader_default_bass

int const blip_reader_default_bass = 9

◆ blip_res

int const blip_res = 1 << BLIP_PHASE_BITS

◆ blip_sample_bits

int const blip_sample_bits = 30

◆ blip_unscaled

const long blip_unscaled = 65535

◆ blip_widest_impulse_

int const blip_widest_impulse_ = 16