Search found 4 matches

by DennisChau
Tue Dec 01, 2015 1:33 pm
Forum: General Audio Programming
Topic: Distortion in IMA ADPCM, suspect block header issue
Replies: 7
Views: 2237

Re: Distortion in IMA ADPCM, suspect block header issue

Hi Gale, Perhaps I did not explain very clear.. - "Sine-1KHz-16x16-5s_SWgenerated (modified)" is PCM data. - I use Audacity to open, and export into "Sine-1KHz-16x16-5s_SWgenerated (IMA ADPCM)" - data DE 39 4F 00 is at offset 572 of "Sine-1KHz-16x16-5s_SWgenerated (IMA ADPCM)" file I'm not expert in...
by DennisChau
Mon Nov 30, 2015 3:16 pm
Forum: General Audio Programming
Topic: Distortion in IMA ADPCM, suspect block header issue
Replies: 7
Views: 2237

Re: Distortion in IMA ADPCM, suspect block header issue

Hi Gale, I've take a look at libsndfile, in particulare ima_adpcm.c static int wav_w64_ima_encode_block (SF_PRIVATE *psf, IMA_ADPCM_PRIVATE *pima) { /* Encode the block header. */ for (chan = 0 ; chan < pima->channels ; chan++) { pima->block [chan*4] = pima->samples [chan] & 0xFF ; pima->block [chan...
by DennisChau
Mon Nov 30, 2015 12:33 pm
Forum: General Audio Programming
Topic: Distortion in IMA ADPCM, suspect block header issue
Replies: 7
Views: 2237

Re: Distortion in IMA ADPCM, suspect block header issue

Hi Gale, Thanks for your reply First of all, I did not claim this is Audacity bug and I myself do not think so anyway. I was merely looking for advices from those who have experience in this field. "What do you mean by "fed into Audacity"? Do you mean record or import? " ==> I used Audacity to open ...
by DennisChau
Mon Nov 30, 2015 10:10 am
Forum: General Audio Programming
Topic: Distortion in IMA ADPCM, suspect block header issue
Replies: 7
Views: 2237

Distortion in IMA ADPCM, suspect block header issue

Hi guys, I'm implementing IMA ADPCM compression based on algorithm from Microchip (also attached here). and package data into WAV format. However, there is distortion in compressed data My testing method: - generate a 5s of PCM data : 16kHz x 16 bit. File name: "Sine-1KHz-16x16-5s_SWgenerated (modif...