You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got board with amplifier ICs FM8002A and ESP32. I am able to play mp3, but sound is heavy distorted (Wav and mp3 file). If I play artificially generated sound it almost works. I have tried different combinations:
AudioOutputI2S *outs(int o) //o - selected option
{
switch (o)
{
case0: // distorted almost worksreturnnewAudioOutputI2SNoDAC();
case1:
returnnewAudioOutputI2S(); // loud and distortedcase2: // sample rate is too small, the mclk division exceed the maximum value 255returnnewAudioOutputI2S(0, AudioOutputI2S::INTERNAL_DAC);
case3: // i2s_calculate_pdm_tx_clock(720): sample rate is too small, the mclk division exceed the maximum value 255returnnewAudioOutputI2S(0, AudioOutputI2S::INTERNAL_PDM, 8, AudioOutputI2S::APLL_ENABLE);
case4: // loud and distortedreturnnewAudioOutputI2S(0, AudioOutputI2S::EXTERNAL_I2S, 8, AudioOutputI2S::APLL_ENABLE);
case5: // loud and distortedreturnnewAudioOutputI2S(0, AudioOutputI2S::EXTERNAL_I2S, 8, AudioOutputI2S::APLL_DISABLE);
default:
returnnullptr; // Handle unexpected values of 'o'
}
};
Can someone give me any suggestion at lest confirm that it should work or that you had same problems ;(.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I got board with amplifier ICs FM8002A and ESP32. I am able to play mp3, but sound is heavy distorted (Wav and mp3 file). If I play artificially generated sound it almost works. I have tried different combinations:
Best I got listen here
Can someone give me any suggestion at lest confirm that it should work or that you had same problems ;(.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions