Skip to content

LittleFS -> I2S | How do I trigger looping for specific files? #914

Closed Answered by pschatzmann
auyiteng asked this question in Q&A
Discussion options

You must be logged in to vote

I am afraid you still don't understand: Just implement your own AudioSource logic! All you need to do is to implement the nextStream method to return a Stream (=File) that makes sense in your case (dependent on what button was pressed).

You could return a FileLoop but this is not really necessary as when you return the same file, it is automatically playing again

However if I would implment your requirement, I would not use the player at all, but just build my own logic using directly multiple FileLoop objects as copy source. I would even replace the files with a MemoryStream to simplify things even further...

Replies: 15 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@auyiteng
Comment options

@LinusHeu
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@auyiteng
Comment options

@auyiteng
Comment options

Comment options

You must be logged in to vote
2 replies
@auyiteng
Comment options

@auyiteng
Comment options

Comment options

You must be logged in to vote
3 replies
@pschatzmann
Comment options

@auyiteng
Comment options

@pschatzmann
Comment options

Comment options

You must be logged in to vote
1 reply
@pschatzmann
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants