Skip to content

music.set_vol

Kyuchumimo edited this page Jul 10, 2024 · 1 revision

🧩🔊 This is a general-purpose audio-related function.

music.set_vol(channel, vol)

Parameters

  • channel: Channel to be used. Valid values: 0-2.
  • vol: Volume to set. Values:0-15, where 0 is silence and 15 max volume.

Description

This function is used to control the volume of one of the channels of the AY-3-8910 only.

Note that you can only control the AY-3-8910 and not the Konami SCC. This is because the Konami SCC is intended to be used exclusively for music, while the AY-3-8910 is for sound effects and noise. It is a design choice.

Clone this wiki locally