-
Notifications
You must be signed in to change notification settings - Fork 704
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
Getting cryptic message when trying to play m4a/aac file using espressif/esp_audio_codec (AUD-5959) #1338
Comments
I have check this issue, there is a typo error in the test code, I see same error in you code, https://github.com/gamename/test-squawk/blob/main/main/test-squawk.c#L152 //simp_dec_all_t *all_cfg = (simp_dec_all_t *)&cfg->dec_cfg;
/simp_dec_all_t *all_cfg = (simp_dec_all_t *)cfg->dec_cfg; Also I check the provided m4a is not supported currently for its both stco and stsz contain no table item. I have converted it for you, you can use it to do verify please rename it to m4a. Meanwhile I see you have not enable SPIRam support, so there may be not enough space to hold the MP4 tables, you can use menuconfig to enable it
squawk.mp4 |
Thank you! That was very kind. How did you convert it? I would like an example of the process so I can use it in the future. |
Everything compiled and ran, but no sound. :( Here is the log:
|
From the log, it already decode OK, I see your code, you need write data to i2s in order to play it. static int simple_decoder_write_pcm(uint8_t *data, int size) {
adjust_volume(data, size, volume);
write_ctx.decode_size += size;
// Add your write data to i2s flow like
// int ret = i2s_channel_write(tx_chan, data, size, &bytes_written, 1000);
return size;
} |
@TempoTian That worked! Closing... |
Environment
Audio development kit: None
Audio kit version: N/A
[Required] ESP32-S3-DevKitC-1-N16
[Required] v5.3.1
[Required] v2.7-47-g93a56fcd (but that is misleading - see below)
Build system: idf.py
[Required] Running log:
squawk_log.txt
Compiler version
The text was updated successfully, but these errors were encountered: