2024-07-28 03:29 AM - edited 2024-07-28 03:40 AM
I have wrote software for recording audio from line in to wav file for STM32H745 discovery board.
But output file is distortion (original file and output file is in attachment)
Input file and output file is the same sample rate (32khz, 16 bit, 2 channel)
I have compared 2 file in audacity in following picture.
Could anyone have experiment to fix this problem ?
2024-07-28 04:17 AM
Mickey Mouse speaking ... 🙂
So you have mixed up the data , maybe 16b -> 2x 8b -> 2x16b , producing like double speed audio.
Check, how you handle the data flow.