MusSetMasterVolume.html 1.78 KB
<html>
<head>
<title>NINTENDO64 Sound Tools Programing Manual</title>
</head>
<body bgcolor="#d0d0d0" text="#000000" link="#008000" vlink="#008000">

<h1><font color="#000080">MusSetMasterVolume()</font></h1>

<h2><font color="#ff0000">$B%W%m%H%?%$%W@k8@(B</font></h2>

<pre>  void <strong>MusSetMasterVolume</strong>(unsigned long <font color="#0000ff">flags</font>, int <font color="#0000ff">volume</font>);</pre>

<h2><font color="#ff0000">$B0z?t(B</font></h2>

<table>
  <tr>
    <td valign="top">
      <font color="#0000ff"><code>flags</code></font>
    </td>
    <td>
      $B%5%&%s%I%=!<%9$N<oN`(B
    </td>
  </tr>
  <tr>
    <td valign="top">
      <font color="#0000ff"><code>volume</code></font>
    </td>
    <td>
      $B%^%9%?!<%\%j%e!<%`%l%Y%k(B
    </td>
  </tr>
</table>

<h2><font color="#ff0000">$B@bL@(B</font></h2>

<p>$BM?$($i$l$?<oN`$K$h$C$F@8@.$5$l$k$9$Y$F$N%5%&%s%I$K4X$9$k%^%9%?!<%\%j%e!<%`%l%Y%k$r@_Dj$7$^$9!#$3$N4X?t$K$h$C$F%W%m%0%i%^$O%=%s%0$*$h$S%5%&%s%I%(%U%'%/%H$K4X$7$F%^%9%?!<%\%j%e!<%`%l%Y%k$rDj5A$9$k$3$H$,$G$-$k$h$&$K$J$j$^$9!#(B</p>

<p>$B0z?t(B<font color="#0000ff"><code>flag</code></font>$B$O(B<code>MUSFLAG_SONGS</code>$B!"(B<code>MUSFLAG_EFFECTS</code>$B$"$k$$$O$=$NN>J}$,(Bor$B$GAH$_9g$o$5$l$?$b$N$r4^$s$G$$$J$1$l$P$J$j$^$;$s!#(B</p>

<p>$B0z?t(B<font color="#0000ff"><code>volume</code></font>$B$NCM$O(B0$B$+$i(B0x7FFF(32767)$B$NHO0OFb$K$"$k$Y$-$G$9!#(B</p>

<h2><font color="#ff0000">$BLa$jCM(B</font></h2>

<p>$B$J$7(B</p>

<h2><font color="#ff0000">$BNc(B</font></h2>

<pre>  void SetOptionsSfx(int value)
  {
    <strong>MusSetMasterVolume</strong>(MUSFLAGS_EFFECTS, (value*0x1000)+0xfff);
  }

  void SetOptionsMusic(int value)
  {
    <strong>MusSetMasterVolume</strong>(MUSFLAGS_SONGS, (value*0x1000)+0xfff);
  }
</pre>

</body>
</html>