gb.sound.setVolume

From Gamebuino Wiki
Revision as of 2015-01-01T16:08:51 by Jolly (talk | contribs) (small corrections, added data types)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Sets the volume of the Gamebuino's Speaker Using 0 will mute it, 1 will allow it to make sound.

Syntax

gb.sound.setVolume(volume, channel);

Value

  • volume (byte): The volume of the speaker.
  • channel (unsigned byte) (optional): Specifies which channel's volume is changed.

Example

See also