Skip to content

Setup of volume for i2sstream #2005

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

You must be logged in to vote

Oh No: I just noticed that you want to use the AudioWAVServer class. Your unnecessary StreamCopy was confusing me first.

Lets take this example as starting point: Which implements the following chain I2SStream -> AudioWAVServer.

AudioWAVServer is using readBytes() to get the data from I2SStream.

If you want to add a VolumeStream you need to extend the chain to I2SStream -> VolumeStream -> AudioWAVServer which would require

  VolumeStream volumeStream(i2sStream);  // volumeStream is reading data from i2sStream

and

   server.begin(volumeStream, config, &filler); // server is reading data from volumeStream

Replies: 2 comments 3 replies

Comment options

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

Comment options

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

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