Giter Club home page Giter Club logo

Comments (3)

CelliesProjects avatar CelliesProjects commented on June 23, 2024

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.

CelliesProjects avatar CelliesProjects commented on June 23, 2024

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 }

https://github.com/CelliesProjects/ESP32_VS1053_Stream/blob/master/src/ESP32_VS1053_Stream.cpp#L584-L596

If you dont mind blocking use it to send the whole buffer in one go:

void playChunk(data, len);

from esp32_vs1053_stream.

lidense avatar lidense commented on June 23, 2024

from esp32_vs1053_stream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.