public virtual void copy(SBRData that) { bsFrameClass = that.bsFrameClass; bsAddHarmonicFlag = that.bsAddHarmonicFlag; bsNumEnv = that.bsNumEnv; Utilities.copy(bsFreqRes, that.bsFreqRes); bsNumNoise = that.bsNumNoise; Utilities.copy(bsDfEnv, that.bsDfEnv); Utilities.copy(bsDfNoise, that.bsDfNoise); Utilities.copy(bsInvfMode, that.bsInvfMode); Utilities.copy(bsAddHarmonic, that.bsAddHarmonic); bsAmpRes = that.bsAmpRes; // State variables Utilities.copy(synthesisFilterbankSamples, that.synthesisFilterbankSamples); Utilities.copy(analysisFilterbankSamples, that.analysisFilterbankSamples); synthesisFilterbankSamplesOffset = that.synthesisFilterbankSamplesOffset; Utilities.copy(eA, that.eA); Utilities.copy(bwArray, that.bwArray); Utilities.copy(W, that.W); Utilities.copy(Y, that.Y); Utilities.copy(gTemp, that.gTemp); Utilities.copy(qTemp, that.qTemp); Utilities.copy(sIndexmapped, that.sIndexmapped); Utilities.copy(envFacs, that.envFacs); Utilities.copy(noiseFacs, that.noiseFacs); Utilities.copy(tEnv, that.tEnv); tEnvNumEnvOld = that.tEnvNumEnvOld; Utilities.copy(tQ, that.tQ); fIndexnoise = that.fIndexnoise; fIndexsine = that.fIndexsine; }
public SpectralBandReplication() { for (int i = 0; i < data.Length; i++) { data[i] = new SBRData(); } }