MusSetMasterVolume.html
1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<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>