Home › Forums › Sparkfun MP3 Shield Library Support Forum › setVolume doesn´t seem to handle discrete volume for each channel (Lilypad MP3) › Reply To: setVolume doesn´t seem to handle discrete volume for each channel (Lilypad MP3)
Please note there are three overloaded functions for volume
void SFEMP3Shield::setVolume(uint8_t leftchannel, uint8_t rightchannel);
void SFEMP3Shield::setVolume(uint16_t (leftchannel<<8)+rightchannel);
void SFEMP3Shield::setVolume(uint8_t ValueToBoth);
Described in the documentation, that can be found at
Additionally the following can impact how the VS1053 output the signal.
void SFEMP3Shield::setMonoMode (uint16_t);
void SFEMP3Shield::setDifferentialOutput (uint16_t);
Note that stock SFEMP3Shield library does not include an example called “trigger”. Only MP3Shield_Library_Demo.ino and FilePlayer.ino employ SetMonoMode and SetDifferentialOutput by use of a Menu.
Where all examples except that of WebPlayer.ino control volume via the use of
void SFEMP3Shield::setVolume (uint8_t leftchannel, uint8_t rightchannel)