Skip to content

MemoryStream avoid autoplay when turn up #1275

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

You must be logged in to vote

With the current implementation, adding copier.setActive(false) to the setup() and copier.setActive(true) to the playButton() should do the trick.

I committed a change that sets MemoryStream to be inactive when you call end(), so if you upgrade, your solution should work w/o any change as well or instead of calling end() you could set it to inactive in the constructor e.g. with MemoryStream music(hihat_raw, hihat_raw_len, false);

Replies: 1 comment 1 reply

Comment options

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

Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants