-
Notifications
You must be signed in to change notification settings - Fork 15
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
Cannot compile using PCM51xx #2
Comments
I have never tested this using other HW than the Lyrat v4.3. I had to edit some of the components I copied from ADF to the project to make it compile without esp_adf_libs. ADF isn't necessary to be installed. I am at work currently but when I have time I'll have a look at this and try to compile it myself using custom board to see what might be the issue. But it seems there is some entry missing in the Cmake files |
Ok, should be able to compile now, except MA120X0. Will have to check upstream code why there are so many errors on my fork. Can't test it though on my end. Reason it was broken was because esp_peripherals component just includes the i2c driver part. Anything else got dropped by myself. You won't be able to use any keys or sd card on a dev board with this code, currently I don't have use for this because I am only interested on the codec part and getting syncing right. Also you can check out NETCONN branch where I actively do development on, trying to minimize (peak) RAM usage as much as possible to get it to run on those ESP modules with no PSRAM. Still all this code is very much WIP and kind of dirty, same as master. Hopefully everything works correctly to clone, especially those submodules, I've some trouble pushing these correct because I don't understand how to use them as it seems :/ |
Hey Carlos, But now |
I never enabled ogg support. From flac README: "If you want to build without Ogg support, instead edit all .vcproj files and remove any "FLAC__HAS_OGG" definitions." I didn't enable OGG in flac's config.h, not sure what is the Problem on your end using visual studio (if I understand correctly). I am doing development on an ubuntu machine with eclipse IDE using espressif's plugin. Maybe you have to change some entries in flac component config.h to be compatible with windows build system? |
You could also try to run |
Okay, I see. Thanks, I'll try disabling it on my environment as well and report back. I might try it on my linux machine as well. |
It fails on Debian with the exact same errors. Is esp-idf 4.3 still the correct version? |
Alright, I think I found the problem. Since I have done some dirty thing to the flac repo along the road this won't work with a fresh submodule init. I deleted all ogg*.h and ogg*.c files in libFlac and it's include directory. Also I deleted windows_unicode_filenames.c Afterwards it should compile and start to work. At least on a Linux machine. I'll have to look into that at some point so this won't be necessary, but hopefully this will get you going. edit: and yes idf is verstion v4.3, also v4.3.1 should work |
Ok, not sure if I did this the right way, but I excluded these files now in flac's CmakeList and compilation should work now successful. On Master I get saome error regarding certificates using IDF v4.31 but using NETCONN branch it shoudl compile. Not sure whats the problem on master, but this has something to do with IDF. I think disabling TLS removes that problem. |
Without looking too deep into it, it might be this issue here: espressif/esp-idf#5322 (comment) I posted a solution there as well:
|
It works! 🚀 One more thing though: Lines Thanks again! |
Glad to hear you finally managed to get it to run. I have abandoned master quite some time ago. On NETCONN I am trying to reduce (peak) RAM usage as much as I can. Regarding your out of sync issue, using Lyrat and comparing it to raspberry clients I don't have any issues but assumed that in another setting this will happen. How long is your sync buffer? Using FLac, the maximum with stable playback without any errors was around 750ms maybe a bit less. I also had problems when I was using 40MHz Wifi channels on the router. |
Ah and I just remembered now that I did another modification to flac to reduce overall RAM usage, in file Is the problem actually out of sync playback of clients or are there resyncing events happening? Also If buffer is set too large on the server, the client might fail to allocate the audio chunk and it will get out of sync by one chunk. This is an issue I am still working on |
Okay, my sync buffer is too large at 1000 ms, that's one thing. I'll dig into that a bit. |
After changing the buffer to 500 ms it worked perfectly for an hour. Thanks again! |
That's great to read :) If you set it that low you probably could leave |
Hey Carlos,
I'm trying to compile for using my ESP32 with a PCM51xx. Unfortunately, I get the error message
../components/custom_board/generic_board/include/board.h:33:10: fatal error: esp_peripherals.h: No such file or directory
.(Without really knowing what I'm doing) I added
../esp_peripherals/include
to the includedirs, but thenaudio_common.h
is missing and that depends onesp_adf_libs
again...Do I have to have esp-adf installed as well despite the components you copied into your repo?
Thanks,
miLORD
The text was updated successfully, but these errors were encountered: