MusPtrBankInitialize.html
3.4 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
73
74
<html>
<head>
<title>NINTENDO64 Sound Tools Programing Manual</title>
</head>
<body bgcolor="#d0d0d0" text="#000000" link="#008000" vlink="#008000">
<h1><font color="#000080">MusPtrBankInitialize()</font></h1>
<h2><font color="#ff0000">$B%W%m%H%?%$%W@k8@(B</font></h2>
<pre> void <strong>MusPtrBankInitialize</strong>(void *<font color="#0000ff">pbank</font>, void *<font color="#0000ff">wbank</font>);</pre>
<h2><font color="#ff0000">$B0z?t(B</font></h2>
<table>
<tr>
<td valign="top">
<font color="#0000ff"><code>pbank</code></font>
</td>
<td>
$B%5%s%W%k%]%$%s%?!<%P%s%/%U%!%$%k$N%"%I%l%9(B
</td>
</tr>
<tr>
<td valign="top">
<font color="#0000ff"><code>wbank</code></font>
</td>
<td>
$B%5%s%W%k%&%'!<%V%P%s%/%U%!%$%k$N%"%I%l%9(B
</td>
</tr>
</table>
<h2><font color="#ff0000">$B@bL@(B</font></h2>
<p>$B%i%$%V%i%j$GMxMQ$9$k%5%s%W%k%P%s%/$r=i4|2=$7$^$9!#%5%s%W%k%]%$%s%?!<%P%s%/$,=i4|2=$5$l$F$$L5$$>l9g!"%5%s%W%k%]%$%s%?!<%P%s%/Fb$NMM!9$J%*%U%;%C%H$O%5%s%W%k%]%$%s%?!<$H%5%s%W%k%P%s%/%U%!%$%k$N$=$l$>$l$N%]%$%s%?!<$K@_Dj$7$J$*$5$l$^$9!#%G%U%)%k%H$N%5%s%W%k%P%s%/$,@_Dj$5$l$F$$$J$1$l$P!"$3$N%5%s%W%k%P%s%/$r%G%U%)%k%H$N%P%s%/$H$7$F@_Dj$7$^$9!#(B</p>
<p>$B%G%U%)%k%H$N%5%s%W%k%P%s%/$O(B<a href="MusStartSong.html"><code>MusStartSong()</code></a>$B!"$"$k$$$O(B<a href="MusStartSongFromMarker.html"><code>MusStartSongFromMarker()</code></a>$B$,%5%s%W%k%P%s%/!<%P!<%i%$%I$,(B<a href="MusPtrBankSetSingle.html"><code>MusPtrBankSetSingle()</code></a>$B4X?t$G@_Dj$5$l$F$$$J$$>l9g$K;H$o$l$^$9!#(B</p>
<p>$B%G%U%)%k%H$N%5%s%W%k%P%s%/$O(B<a href="MusStartEffect.html"><code>MusStartEffect()</code></a>$B!"$"$k$$$O(B<a href="MusStartEffect2.html"><code>MusStartEffect2()</code></a>$B$,%5%s%W%k%P%s%/%*!<%P!<%i%$%I$r@_Dj$7$F$$$J$$>l9g$K!"%5%&%s%I%(%U%'%/%H$r3+;O$9$k$?$a$K;H$o$l$^$9!#(B<a href="MusFxBankSetSingle.html"><code>MusFxBankSetSingle()</code></a>$B4X?t$O<!$N3+;O$9$k%5%&%s%I%(%U%'%/%H$N$?$a$N%5%&%s%I%(%U%'%/%H%*!<%P!<%i%$%I$r;XDj$9$k$?$a$K;H$o$l$^$9!#(B</p>
<p>$B0z?t(B<font color="#0000ff"><code>pbank</code></font>$B$O!"(BRAM$B>e$K(B32$B%S%C%H%"%i%$%s(B($B%-%c%C%7%e%"%i%$%s$r?d>)(B)$B$GCV$+$l$?(BNINTENDO64 Sound Tools$B$N(B<code>.PTR</code>$B%U%!%$%k$G$J$1$l$P$J$j$^$;$s!#(B</p>
<p>$B0z?t(B<font color="#0000ff"><code>wbank</code></font>$B$O!"(BROM$B$^$?$O(BRAM($B%i%$%V%i%j$N=i4|2=;~$K@_Dj(B)$B>e$KCV$+$l$?(BNINTENDO64 Sound Tools$B$N(B<code>.WBK</code>$B%U%!%$%k=P$J$1$l$P$J$j$^$;$s!#(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 AudioSetSampleBank(int sample_bank)
{
<font color="#800000">/* test if sample bank is already loaded */</font>
if (sample_bank==last_sample_bank)
return;
last_sample_bank = sample_bank;
<font color="#800000">/* load sample bank */</font>
AudioTransfer(ptr_address[sample_bank], ptr_buffer);
AudioTransfer(wbk_address[sample_bank], wbk_buffer);
<font color="#800000">/* initialise sample bank */</font>
<strong>MusPtrBankInitialize</strong>(ptr_buffer, wbk_buffer);
}
</pre>
<h2><font color="#ff0000">$B;2>H(B</font></h2>
<a href="MusPtrBankGetCurrent.html"><code>MusPtrBankGetCurrent()</code></a>,
<a href="MusPtrBankSetCurrent.html"><code>MusPtrBankSetCurrent()</code></a>,
<a href="MusPtrBankSetSingle.html"><code>MusPtrBankSetSingle()</code></a>
</body>
</html>