Comments (3)
Hi lidense.
how can I instead feed by data buffer to the stream and get it played from vs1053?
Not that easy I think. This library is intended purely as a (internet) stream client.
All internal functions depend on a WiFiClient
pointer to function.
Something like you suggest would require a separate codepath in the loop to function.
And probably several helper functions.
from esp32_vs1053_stream.
If that is all your app is doing then you could maybe use just the VS1053 library and use the
VS1053 playChunk()
function.
It says that the function blocks, but that is only true if you dont use data_request()
as a good to go signal.
This library uses playChunk()
exactly in that way. Simplified:
While data_request()
is true, { send max 32 bytes if any data left }
If you dont mind blocking use it to send the whole buffer in one go:
void playChunk(data, len);
from esp32_vs1053_stream.
from esp32_vs1053_stream.
Related Issues (20)
- Stream name not decoded by one station, reason currently unknow HOT 18
- ICY name problem? HOT 3
- The high-bitrate web radio is not working HOT 1
- Is there way to listen to radios using HLS (.ts files)? HOT 3
- I am using this library to listen to my favorite radios, from time to time (about 30-60min) the Esp32 reboots and then keeps rebooting for a few minutes immediately after the first sounds from the station comes out, then it functions normally again. Any ideas? HOT 13
- about the port number? HOT 2
- 'class VS1053' has no member named 'getChipVersion' HOT 2
- Error compiling simple.ino HOT 2
- lot of compilation errors with arduino Arduino ESP32 pre-release version 3.0.0-aplha 3
- stream stop when call setvolume(), Buffer is zero HOT 1
- error: 'StaticRingbuffer_t' does not name a type HOT 3
- Compiler errors HOT 5
- Watchdog HOT 2
- On https chunked stream, stream->available() returns 31 or less and hangs , but stream unblocks if we read these bytes HOT 4
- ESP Core 3.0.1 - tcpip_adapter_* to esp_netif_`*
- How to use other DAC chip type NS4168? HOT 16
- codec: UNKNOWN library not start any stream since esp32 core 2.0.3 HOT 18
- Unable to play ogg streams, flac ogg playing but no sound HOT 4
- ESP32 core 2.0.4 most of the stations do not play anymore HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32_vs1053_stream.