Need Help. Can no l...
 
Notifications
Clear all

Need Help. Can no longer compile any program with the audio.loop() statement enclosed.

19 Posts
5 Users
0 Reactions
605 Views
(@crash)
Member
Joined: 3 years ago
Posts: 13
Topic starter  

@davee Yes I know that my reproduction of the copy and pasted code does not look very good. There are many lines that blend together rather that space them properly. I tried to edit them when I realized the error but I ran out of time and it would not let me correct the errors. At any rate The Drone Bot workshop ran a topic in which Bill showed how the Audio_Showtitle...... etc  ran. The topic was Sound with ESP32 I2S in the program he wrote a bit of code called

ESP32 Internet Radio 

he gave the code and ran the example in which he showed the outputs of the various Audio_XXXXX  events and the results printed on the Serial Monitor. I copied and pasted the code. Compiled and loaded it but it did not produce the same results. The Serial Monitor showed nothing like was shown in his example. 

Thank you so very much for sticking with me on this and I understand your desire to help out even though we seem to be on very different levels of experience. This is the last piece of my puzzle so I'll try to stick with it and follow your advice. I will let you know when and IF I do and how it came to be. Until then, take care and thank you so very much for your continued help. See Ya in a Bit!!!!! ------ Crash. 



   
ReplyQuote
(@crash)
Member
Joined: 3 years ago
Posts: 13
Topic starter  

@davee     One thing I sort of forgot to mention is how these events get called. In my script you'll notice a line

audio.connecttohost("http://icecast.a.ware.com:8000/mmoldies.mp3"); This is the call to a particular streaming internet radio station. If it connects it sends metadata back to the ESP32 i the form of data. The Music from the station is send over the internet and through the ESP32 to the Amps via the I2S bus and out the speakers. Many of these Internet Stations also send additional data such as the Station Name, the Genre, the title of the music being played and the name of the artist playing it. If you look through Bills I2S experiment you will see the event names and what they are used for. The CALL is not made by the ESP32 but rather it is gathered by the ESP32 IF the station provides it. I wrote my original code back in 2023 piecing together steps to include the SD Card Reader, the OLED display and the Amplifiers to play the music. I gathered the code from Bills experiments and from other coders who helped me get it together in a format that would allow it to work. It is almost 400 lines of code and it all worked until just last month when Board Manager 3 and associated upgrades came about. I lost the memory needed to make it work but you helped me get most of it back with your post on partition schemes. Everything is coded the same way but the events being sent are either no longer being sent by the internet station or no longer being captured by the I2S ESP32. 
Sorry for the long dissertation but I didn't want you to go away thinking I had no Idea what I was looking for, The problem I have is that I have no way of knowing how to recapture it!!!!!! It just bothers me that it worked for 3 years and then "POOF" gone. Once again thanks for the help and for putting up with me. Take Care ------Crash
 


   
ReplyQuote
(@crash)
Member
Joined: 3 years ago
Posts: 13
Topic starter  

@davee

                 Well I beat it!!!!  All the scrambling around came down to 2 simple code changes. I'm not to sure how one of these changes will affect my future coding but for right now I am Happy. Pouring through many post of questions and answers I came across a GitHub one from Schreibfaul1. He was answering another coders question and he mentioned that some of the Audio libraries changed after ESP32 audioI2S-Master version 3.2.1 Being curious I removed the 3.4.5 version of this library and installed the 3.2.1 version. I then went through my Sketchbook and located a sketch from Dec22 which I cobbled together back then. Some of the code was different from code I rewrote over the last 3 years. I compiled that sketch and loaded it. Upon starting it, BAM the OLED lit up with the Song Name and the name of the Artist performing it. I incorporated lines from that old sketch into my current one and now my Internet Radio and MP3 player work the way it used to. The only drawback is that I can no longer play .WAV files like I used to. I'll figure that one out later, I will try to post 2 videos to show my success.

The button on the Left side controls the Internet Radio selections and the Button on the Right side controls the SD Card reader for MP3 files. I told you I would keep you posted and here I am. Small things still need to be cleaned up but HEY, it plays music and tells me what it is playing so not tooooo bad 🙂 



   
ReplyQuote
(@davee)
Member
Joined: 5 years ago
Posts: 2042
 

Hi @crash,

  Great to hear you found your way through the maze of confusion. Thanks for the update.

Best wishes, Dave 



   
ReplyQuote
Page 2 / 2