diff options
Diffstat (limited to 'src/adpcm')
-rw-r--r-- | src/adpcm/adpcm.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/adpcm/adpcm.cpp b/src/adpcm/adpcm.cpp index 7805dc5..e3741b6 100644 --- a/src/adpcm/adpcm.cpp +++ b/src/adpcm/adpcm.cpp @@ -194,6 +194,7 @@ int CompressADPCM(void * pvOutBuffer, int cbOutBuffer, void * pvInBuffer, int cb return 2; // Set the initial step index for each channel + PredictedSamples[0] = PredictedSamples[1] = 0; StepIndexes[0] = StepIndexes[1] = INITIAL_ADPCM_STEP_INDEX; // Next, InitialSample value for each channel follows @@ -306,6 +307,7 @@ int DecompressADPCM(void * pvOutBuffer, int cbOutBuffer, void * pvInBuffer, int int ChannelIndex; // Current channel index // Initialize the StepIndex for each channel + PredictedSamples[0] = PredictedSamples[1] = 0; StepIndexes[0] = StepIndexes[1] = INITIAL_ADPCM_STEP_INDEX; // _tprintf(_T("== DCMP Started ==============\n")); |