MusSetMarkerCallback.html 1.88 KB
<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>(&amp;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>