Difference between revisions of "Gb.sound.setVolume"
From Gamebuino Wiki
Skyrunner65 (talk | contribs) (Basic Creation, need Detail, but that can wait :)) |
m (small corrections, added data types) |
||
Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
− | <pre>gb.sound.setVolume(volume, | + | <pre>gb.sound.setVolume(volume, channel);</pre> |
== Value == | == Value == | ||
− | * volume: The volume of the speaker. | + | * volume (byte): The volume of the speaker. |
− | * channel ''(optional)'': Specifies which channel's volume is changed. | + | * channel (unsigned byte) ''(optional)'': Specifies which channel's volume is changed. |
== Example == | == Example == | ||
== See also == | == See also == |
Latest revision as of 2015-01-01T17:08:51
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.