MusSetMarkerCallback.html
1.88 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
<html>
<head>
<title>NINTENDO64 Sound Tools Programing Manual</title>
</head>
<body bgcolor="#d0d0d0" text="#000000" link="#008000" vlink="#008000">
<h1><font color="#000080">MusSetMarkerCallback()</font></h1>
<h2><font color="#ff0000">$B%W%m%H%?%$%W@k8@(B</font></h2>
<pre> void <strong>MusSetMarkerCallback</strong>(void *<font color="#0000ff">callback</font>);</pre>
<h2><font color="#ff0000">$B0z?t(B</font></h2>
<table>
<tr>
<td valign="top">
<font color="#0000ff"><code>callback</code></font>
</td>
<td>
$B%3!<%k%P%C%/4X?t$N%"%I%l%9(B
</td>
</tr>
</table>
<h2><font color="#ff0000">$B@bL@(B</font></h2>
<p>$BF14|%^!<%+!<$N%3!<%k%P%C%/4X?t$r@_Dj$7$^$9!#$3$N4X?t$K$O%W%m%0%i%^$,MQ0U$7$?4X?t$K%=%s%0$N:F@8Cf$K=P8=$7$?%^!<%+$rCN$i$;$k@h$N4X?t$N%"%I%l%9$r;XDj$7$^$9!#%3!<%k%P%C%/$N0z?t$O(B<code>libmus.h</code>$B$G(B<code>typedef</code>$B$5$l$F$$$k(B<code>LIBMUScb_marker</code>$B$NMM$K$J$j$^$9!#(B</p>
<pre> typedef void(*LIBMUScb_marker) (musHandle, int);</pre>
<p>$B%3!<%k%P%C%/4X?t$XEO$5$l$k%Q%i%a!<%?$O%3!<%k%P%C%/$r@8@.$7$?%=%s%0$N%O%s%I%k$H8+$D$1$i$l$?F14|%^!<%+!<$N?t$G$9!#(B</p>
<p><strong>$BCm0U(B:</strong> $B%3!<%k%P%C%/4X?t$O%i%$%V%i%j$N%9%l%C%I$+$i8F$S=P$5$l$k$N$GB.$d$+$K=hM}$5$l$k$3$H$r?d>)$7$^$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 GameSongCallback(musHandle handle, int marker)
{
if (handle==gamesong_handle)
gamesong_position = marker;
}
void GameSongStart(void)
{
gamesong_position = 0;
gamesong_handle = <a href="MusStartSongFromMarker.html">MusStartSongFromMarker</a>(&song_data, 1);
<strong>MusSetMarkerCallback</strong>(GameSongCallback);
}
</pre>
<h2><font color="#ff0000">$B;2>H(B</font></h2>
<a href="MusStartSongFromMarker.html"><code>MusStartSongFromMarker()</code></a>
</body>
</html>