-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio Quality issues #3
Comments
I have had some success with this code but have discovered a few interesting issues which may help:
Here's my play loop:- #define SLC_BUF_LEN (64) // Use the same buffer size as DMA int playWaveFile(wavFILE_t *wavFile,wavProperties_t props){
} |
@romaca Thanks for your inputs.. I have solved my crashes, (see my recent issue post in ( https://github.com/techman83/esp8266-wavplay ) |
Thanks a lot @romaca ! Shifting the stream greatly improves sound quality. Did you have any luck with the other issue you mentioned? |
@timum-viw - sorry I haven’t persued the clock instability issue. Espressif’s ESP8266 interface documentation is very brief (intentionally?) so to fully understand them one needs to read the core driver code which is a pain. Since Earle Philhower’s code works (I have it working), if I have time I’ll try and locate the differences. I suspect it has to do with touching the sampling clock register at the wrong time. |
Looks to me that the variable sample should be an uint32_t. Can this be part of the audio trouble?
|
The code and wav files provided work, but the output is pretty heavily distorted/clipping.
I trimmed the output level one of the wav files, and that seemed to fix the sound issue, though not consistently. I've tried playing with the buffer size and trigger timing, but I cannot get the audio to play cleanly on a consistent basis. Have you experienced any such issues with your build?
Thanks
The text was updated successfully, but these errors were encountered: