WildMidi_MasterVolume(3)

πŸ’– WildMidi_MasterVolume πŸ’–

okay bestie, so this one is from the WildMidi Programmer's Manual and honestly? it's giving "one tiny knob that controls everything" and I am obsessed. it lives in libWildMidi, so if you're linking that, you're in the right place. πŸŽ€


✨ NAME ✨

WildMidi_MasterVolume β€” sets the overall audio level of the library. that's it. that's the whole job. she's the main volume dial and she knows it. 🎚️


🌸 LIBRARY 🌸

libWildMidi β€” that's the girl. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <wildmidi_lib.h>

int WildMidi_MasterVolume (uint8_t master_volume)

πŸ’œ DESCRIPTION πŸ’œ

so you call this and it sets the overall library volume level to master_volume. literally the whole library's vibe, one number. 🌈

the range of master_volume is between 0 and 127, and the default is 100. so like... 100 is the factory setting, 127 is maxxed out, 0 is silence (rip). no cap. πŸ”₯

ngl, 127 is the ceiling. don't go trying 200 and expecting more, bestie, that's not how this works. πŸ™ˆ

⭐ RETURN VALUE ⭐

  • returns -1 on error 😭
  • otherwise returns 0 ✨

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr:


🫢 AUTHOR 🫢

Chris Ison <chrisisonwildcode@gmail.com> and Bret Curtis <psi29a@gmail.com>. legends, honestly. πŸ’–


Copyright (C) WildMidi Developers 2001-2016

This file is part of WildMIDI.

WildMIDI is free software: you can redistribute and/or modify the player under the terms of the GNU General Public License and you can redistribute and/or modify the library under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the licenses, or(at your option) any later version.

WildMIDI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License and the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License and the GNU Lesser General Public License along with WildMIDI. If not, see <http://www.gnu.org/licenses/>.

This manpage is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.


and that's the whole page, bestie!! this one's from 10 March 2016 and it's the WildMidi_MasterVolume(3) page from the WildMidi Programmer's Manual β€” go forth and turn the volume up responsibly πŸ’…βœ¨