3
Copyright (C) 2001 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
21
#define CALCBUFFERSIZE 512
22
#define FRAMESIZE (2*2*2*32*18)
28
// Subbandsynthesis two calcbuffers for every channel, and two channels.
29
// calcbufferL[0]=calcbuffer[0]
30
// calcbufferL[1]=calcbuffer[1]
31
// calcbufferR[0]=calcbuffer[2]
32
// calcbufferR[1]=calcbuffer[3]
33
ATTR_ALIGN(64) REAL calcbuffer[2][2][CALCBUFFERSIZE];
34
ATTR_ALIGN(64) int currentcalcbuffer,calcbufferoffset;
35
ATTR_ALIGN(64) static const REAL filter[512];
36
ATTR_ALIGN(64) REAL out[FRAMESIZE];
44
void doSynth(int lDownSample,int lOutputStereo,
45
REAL *fractionL,REAL *fractionR);
47
void doMP3Synth(int lDownSample,int lOutputStereo,
48
REAL in[2][SSLIMIT][SBLIMIT]);
51
inline void putraw(REAL val) {
55
inline REAL* getOutputData() { return out; }
56
inline void clearrawdata() { outpos=0; }
57
inline int getLen() { return outpos; }
61
void synth_Down(int lOutputStereo,REAL *fractionL,REAL *fractionR);
62
void synth_Std(int lOutputStereo,REAL *fractionL,REAL *fractionR);
64
void synthMP3_Down(int lOutputStereo,REAL hout [2][SSLIMIT][SBLIMIT]);
65
void synthMP3_Std(int lOutputStereo,REAL hout [2][SSLIMIT][SBLIMIT]);
67
inline void nextOffset() {
69
calcbufferoffset&=0xf;
71
if (calcbufferoffset<15) {
81
void computebuffer_Std(REAL *fraction,REAL buffer[2][CALCBUFFERSIZE]);
82
void generate_Std(void);
83
void generatesingle_Std(void);
85
void computebuffer_Down(REAL *fraction,REAL buffer[2][CALCBUFFERSIZE]);
86
void generate_Down(void);
87
void generatesingle_Down(void);