MusHandleSetPan.html
2.72 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
61
62
63
64
65
66
67
68
69
70
71
72
<html>
<head>
<title>NINTENDO64 Sound Tools Programing Manual</title>
</head>
<body bgcolor="#d0d0d0" text="#000000" link="#008000" vlink="#008000">
<h1><font color="#000080">MusHandleSetPan()</font></h1>
<h2><font color="#ff0000">$B%W%m%H%?%$%W@k8@(B</font></h2>
<pre> void <strong>MusHandleSetPan</strong>(musHandle <font color="#0000ff">handle</font>, int <font color="#0000ff">pan</font>);</pre>
<h2><font color="#ff0000">$B0z?t(B</font></h2>
<table>
<tr>
<td valign="top">
<font color="#0000ff"><code>handle</code></font>
</td>
<td>
$B%5%&%s%I%O%s%I%k(B
</td>
</tr>
<tr>
<td valign="top">
<font color="#0000ff"><code>pan</code></font>
</td>
<td>
$B%9%F%l%*%Q%s%9%1!<%k(B
</td>
</tr>
</table>
<h2><font color="#ff0000">$B@bL@(B</font></h2>
<p>$B;XDj$7$?%5%&%s%I%O%s%I%k$K4XO"$7$?%A%c%s%M%k$K$D$$$F$N%Q%s%]%8%7%g%s%9%1!<%k$NCM$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$N%Q%s%]%8%7%g%s$r!"%5%&%s%I%G!<%?$NCf$GK\MhDj5A$5$l$k%]%8%7%g%s$K4XO"$7$F!V0\F0$9$k!W$3$H$,$G$-$k$h$&$K$J$j$^$9!#(B</p>
<p>$B0z?t(B<font color="#0000ff"><code>handle</code></font>$B$O(B<a href="MusStartSong.html"><code>MusStartSong()</code></a>$B!"(B <a href="MusStartSongFromMarker.html"><code>MusStartSongFromMarker()</code></a>$B!"(B <a href="MusStartEffect.html"><code>MusStartEffect()</code></a>$B$"$k$$$O(B<a href="MusStartEffect2.html"><code>MusStartEffect2()</code></a>$B$K$h$C$FJV$5$l$k%5%&%s%I%O%s%I%k$G$J$1$l$P$J$j$^$;$s!#$b$7(B<font color="#0000ff"><code>handle</code></font>$B$H$7$F(B0$B$,M?$($i$l$?$J$i!"$3$N4X?t$O>o$K(B0$B$rJV$7$^$9!#(B</p>
<p>$B0z?t(B<font color="#0000ff"><code>pan</code></font>$B$NCM$O(B0$B$+$i(B0x100(256)$B$NHO0OFb$G$"$k$Y$-$G$"$j!"$3$NHO0O$O85!9$N%5%&%s%I%G!<%?$K$*$$$FDj5A$5$l$F$$$kCM$N(B0%$B$+$i(B200%$B$rI=$7$F$$$^$9!#%G%U%)%k%H$N%Q%s%]%8%7%g%s%9%1!<%k$NCM$O$9$Y$F$N%A%c%s%M%k$K$D$$$F(B0x80(100%)$B$G$9!#(B</p>
<h2><font color="#ff0000">$BLa$jCM(B</font></h2>
<p>$BJQ99$5$l$?%A%c%s%M%k$N?t!#(B</p>
<h2><font color="#ff0000">$BNc(B</font></h2>
<pre> void PanFromAngle(unsigned long handle, float angle)
{
int pan;
<font color="#800000">/* calculate pan position */</font>
if (angle>180.0)
angle -= 180.0;
else
angle = 180.0-angle;
angle = angle*(256.0/180.0);
pan = (int)angle;
<strong>MusHandleSetPan</strong>(handle, pan);
}
</pre>
<h2><font color="#ff0000">$B;2>H(B</font></h2>
<a href="MusHandleSetVolume.html"><code>MusHandleSetVolume()</code></a>,
<a href="MusStartSong.html"><code>MusStartSong()</code></a>,
<a href="MusStartEffect.html"><code>MusStartEffect()</code></a>,
<a href="MusStartEffect2.html"><code>MusStartEffect2()</code></a>
</body>
</html>