1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
\r
5 <meta http-equiv="Content-Style-Type" content="text/css">
\r
6 <meta name="keywords" content="SDL2_mixer">
\r
7 <link rel="top" href="index.html" title="
\83z
\81[
\83\80">
\r
8 <link rel="parent" href="SDL2_mixer-CategoryGeneral.html" title="1
\82Â
\8fã">
\r
9 <title>Mix_GetMusicType</title>
\r
12 <a href="index.html#SDL2_mixer">
\96Ú
\8e\9f</a> - <a href="SDL2_mixer-FrontPage.html">SDL_mixer</a> - <a href="SDL2_mixer-ApiByCategory.html">API(
\8b@
\94\
\95Ê)</a> - <a href="SDL2_mixer-CategoryMusic.html">
\89¹
\8ay</a> - Mix_GetMusicType
\r
14 <h1>Mix_GetMusicType</h1>
\r
15 \89¹
\8ay
\82Ì
\8c`
\8e®
\82ð
\93¾
\82é
\r
17 <code>Mix_MusicType Mix_GetMusicType(const Mix_Music *music)</code>
\r
19 <table border="1" summary="Mix_GetMusicType">
\r
20 <tr><td>music</td><td>
\92²
\8d¸
\82·
\82é
\89¹
\8ay. NULL
\82Ì
\8fê
\8d\87\82Í
\8dÄ
\90¶
\92\86\82Ì
\89¹
\8ay
\82ª
\92²
\8d¸
\82³
\82ê
\82é</td></tr>
\r
22 <h2>
\96ß
\82è
\92l</h2>
\r
23 \89¹
\8ay
\82Ì<a href="Mix_MusicType.html">Mix_MusicType</a>
\82ð
\96ß
\82·.
\r
24 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
\r
27 //
\8dÄ
\90¶
\92\86\82Ì
\89¹
\8ay
\82Ì
\8c`
\8e®
\82ð
\95\
\8e¦
\82·
\82é
\r
28 switch(Mix_GetMusicType(NULL))
\r
32 printf("
\83R
\83}
\83\93\83h
\82Å
\82Ì
\89¹
\8ay
\82ð
\8dÄ
\90¶
\92\86\n");
\r
35 printf("WAVE/RIFF
\8c`
\8e®
\82Ì
\89¹
\8ay
\82ð
\8dÄ
\90¶
\92\86\n");
\r
38 printf("MOD
\8c`
\8e®
\82Ì
\89¹
\8ay
\82ð
\8dÄ
\90¶
\92\86\n");
\r
41 printf("MIDI
\8c`
\8e®
\82Ì
\89¹
\8ay
\82ð
\8dÄ
\90¶
\92\86\n");
\r
44 printf("OGG
\8c`
\8e®
\82Ì
\89¹
\8ay
\82ð
\8dÄ
\90¶
\92\86\n");
\r
47 printf("MP3
\8c`
\8e®
\82Ì
\89¹
\8ay
\82ð
\8dÄ
\90¶
\92\86\n");
\r
50 printf("
\95s
\96¾
\82È
\8c`
\8e®
\82Ì
\89¹
\8ay
\82ð
\8dÄ
\90¶
\92\86\n");
\r
57 music
\82ªNULL
\82Ì
\8fê
\8d\87,
\8dÄ
\90¶
\92\86\82Ì
\89¹
\8ay
\82Ì
\8c`
\8e®
\82ð
\92²
\8d¸
\82·
\82é.
\8dÄ
\90¶
\92\86\82Å
\82È
\82¢
\8fê
\8d\87\82ÍMUS_NONE
\82ð
\96ß
\82·.
\r
59 <h2>
\83o
\81[
\83W
\83\87\83\93</h2>
\r
60 SDL_mixer 2.0.0
\88È
\8d~
\r
61 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
62 <a href="https://wiki.libsdl.org/SDL2_mixer/Mix_GetMusicType">SDL2_mixer/Mix_GetMusicType</a>
\r