Skip to content
Discussion options

You must be logged in to vote

I have improved the documentation of the OutputMixer. Please try to understand the API

Your sketch has many isssues:

  1. The AudioPlayer only provides silence, if you switch this functionality on (with setSilenceOnInactive (bool active)): otherwise there is no output.
  2. Your mixer uses AutoIndex mode, which means with each write it writes to the next mixing channel. When you use a BufferedStream as output, you end up splitting the content to the different output channels! So you must manage the index yourself by calling setAutoIndex (false) and setIndex() before each output to write(uint8_t, size_t).

However, it would be better to use the direct write API by indicating the mixing channel, whe…

Replies: 1 comment 3 replies

Comment options

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

@pschatzmann
Comment options

@Nawor3565
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