I´m creating a solution for the NodeMCU where it will stream TCP data fron a server. This is actually an audiostream from an hamradio station.
This works fine if I put the recieved stream into a file on spiffs and then fire up the PCM module to read the file and play it.
However this is not really what I want to do. I want the PCM module to, more or less, in realtime play the stream. But, and this is my problem, when I fire up the PCM module to read from a string then no sound is heard.
I get the feeling that PCM module is limited to read datafiles directly from spiffs and not from variables containing the same datastring as what the file contains.
Can somebody please help me out to a solution, or confirm my suspicion on this ?
I would be very happy if PCM could support reading from a variable as well...this would solve my problem...