Control of Volume for Memory Stream. How to do it? #1887
-
Dear Prof Schatzmann,
I added Volume Control Instructions to the Memory Stream Reader, but still can not Control the Volume. #include "AudioTools.h" void setup(){ void loop(){ Could you please help me with the right instructions to Control the Stream Volume Correctly? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The following is wrong if you want to use the VolumeStream. You copy the data directoy to i2s, so VolumeStream is not used.
it needs to be
This is using the VolumeStream on the output side of the copy. You can also use it on the input side because this is PCM data to implement the following processing chain: MemoryStream -> VolumeStream -> copy -> I2SStream
As you can see in the examples above, all the components need to be chained up properly! |
Beta Was this translation helpful? Give feedback.
The following is wrong if you want to use the VolumeStream. You copy the data directoy to i2s, so VolumeStream is not used.
For MemoryStream -> copy -> VolumeStream -> I2SStream you would need to replace:
it needs to be
This is using the VolumeStream on the output side of the copy.
You can also use it on the input side because this is PCM data to implement the following processing chain: MemoryStream -> VolumeStream -> copy -> I2SStream
As you can see in the exam…