Skip to content

How to control the volume of AudioSourceSPIFFS and AudioSourceURL? #1714

Discussion options

You must be logged in to vote

Just made a test and I could not reproduce your issue:

  • player.setVolume(0.0); was producing silence
  • player.setVolume(0.1); was quite low volume
  • player.setVolume(1.0); was quite loud

both when called before or after player.begin().

if you look at your library.properties what version number do you see ?
Do you have maybe an i2s module with a dynamic volume control which would automatically amplify a lower input ?

Here are the relevant log entries for the volume of 0.1

...
[I] StreamCopy.h : 70 - buffer_size=1024
[I] AudioPlayer.h : 338 - setVolume(0.100000)
[I] VolumeStream.h : 199 - setVolume: 0.100000 at 0
[I] VolumeStream.h : 199 - setVolume: 0.100000 at 1
[I] StreamCopy.h : 158 - Stre…

Replies: 6 comments 13 replies

Comment options

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

Comment options

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

Answer selected by pschatzmann
Comment options

You must be logged in to vote
8 replies
@AlphaGaming7780
Comment options

@pschatzmann
Comment options

@AlphaGaming7780
Comment options

@pschatzmann
Comment options

@AlphaGaming7780
Comment options

Comment options

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

@AlphaGaming7780
Comment options

Comment options

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

Comment options

You must be logged in to vote
0 replies
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