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
15
#include "synthesis.h"
17
Synthesis::Synthesis() {
24
for(i=CALCBUFFERSIZE-1;i>=0;i--)
25
calcbuffer[LS][0][i]=calcbuffer[LS][1][i]=
26
calcbuffer[RS][0][i]=calcbuffer[RS][1][i]=0.0;
29
initialize_dct64_downsample();
33
Synthesis::~Synthesis() {
37
void Synthesis::doSynth(int lDownSample,int lOutputStereo,
38
REAL *fractionL,REAL *fractionR) {
41
synth_Std(lOutputStereo,fractionL,fractionR);
44
synth_Down(lOutputStereo,fractionL,fractionR);
47
cout << "unknown downsample parameter"<<lDownSample<<endl;
53
void Synthesis::doMP3Synth(int lDownSample,int lOutputStereo,
54
REAL in[2][SSLIMIT][SBLIMIT]) {
58
synthMP3_Std(lOutputStereo,in);
61
synthMP3_Down(lOutputStereo,in);
64
cout << "unknown downsample parameter:"<<lDownSample<<endl;