bluejunimo / YX5300_ESP32

A library to support the YX5300 MP3 Module on the ESP32 platform.
MIT License
2 stars 1 forks source link

Is there a way to query the state of the YX5300? #2

Closed scottchiefbaker closed 1 month ago

scottchiefbaker commented 3 months ago

Is there a way to query the state of the MP3 chip? It would be helpful to know if it's currently: playing, paused, stopped, etc.

I played an entire song and (I assume) it's now stopped. queryCurrentTrackIndex() still reports that it's on the same index. If it's not actively playing I kind of expected that to be 0?

bluejunimo commented 2 months ago

If i remember from making the library, the current state query never worked properly, so i never implemented it. I'll try again though, no promises though :)

bluejunimo commented 2 months ago

I'm having some trouble interfacing with my YX5300s at the moment, so I cannot test the new function queryDeviceState()

scottchiefbaker commented 2 months ago

OK thanks for testing. Let me know what you find. I love this library and I want to help make it even better.

bluejunimo commented 2 months ago

I've ordered some more modules as I believe the ones I have are broken. I'll be able to test things again in a month when I receive them.

scottchiefbaker commented 1 month ago

Did your modules arrive? I'd be curious to work together and make some minor improvements on this.

bluejunimo commented 1 month ago

Glad you're still interested! I got them early september with some new ESP C6s, and I managed to get it playing. I can't remember if I got Serial communication between the computer and the ESP working or not in tadem with music playing, but I remember getting stuck on figuring out the queries. i'm back in school now so it's been difficult making time to come back to it but I do have some time this weekend so i'll see if I can take a crack at it again.

scottchiefbaker commented 1 month ago

OK let me know. I bought an additional 3x units (thanks aliexpress!) because they're so cheap. I'm happy to help test and really get this library polished.