Setup of volume for i2sstream #2005
-
Hello Phil, PLEASE, I am desperately trying to change the volume of the i2s stream. I tried to expand and combine your samples, but in the end, I failed :-( Thank you in advance and wish you a good day. CODE (board = az-delivery-devkit-v4):
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Try to draw the chain and you will realize that you forgot to specify where the result of the VolumeStream should go! |
Beta Was this translation helpful? Give feedback.
-
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
and
|
Beta Was this translation helpful? Give feedback.
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
and