OSDN Git Service

SDL_SaveAllDollarTemplates リンクを追加 https://wiki.libsdl.org/SDL_SaveAllDollarTemplates...
[sdl2referencejp/sdl2referencejp.git] / SDL_AudioFormat.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\r
2 <html lang="ja-JP">\r
3 <head>\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="Simple Directmedia Layer SDL2.0">\r
7 <link rel="top" href="index.html" title="\83z\81[\83\80">\r
8 <link rel="parent" href="CategoryAudio.html" title="1\82Â\8fã">\r
9 <title>SDL_AudioFormat</title>\r
10 </head>\r
11 <body>\r
12 <a href="index.html">\96Ú\8e\9f</a> - <a href="ApiByCategory.html">API(\8b@\94\\95Ê)</a> - <a href="CategoryAudio.html">\8dÄ\90\82Æ\98^\89¹</a> - SDL_AudioFormat\r
13 <hr>\r
14 <h1>SDL_AudioFormat</h1>\r
15 \89¹\90º\8c`\8e®\82Ì\97ñ\8b\93\91Ì\r
16 <h2>\92l</h2>\r
17 <h3>\83r\83b\83g\82Ì\88Ó\96¡</h3>\r
18 <p>\r
19 <a href="SDL_AudioFormat.html">SDL_AudioFormat</a>\82Ì16bit\82Ì\8c»\8dÝ\82Ì\88Ó\96¡\82Í\8e\9f\82Ì\92Ê\82è\82Å\82 \82é.\r
20 <pre>\r
21  +------------1\82È\82ç\83T\83\93\83v\83\8a\83\93\83O\83f\81[\83^\82Í\95\84\8d\86\82 \82è\r
22  |\r
23  |        +-------------1\82È\82ç\83r\83b\83O\83G\83\93\83f\83B\83A\83\93\r
24  |        |\r
25  |        |           +---------1\82È\82ç\95\82\93®\8f¬\90\94\93_\r
26  |        |           |\r
27  |        |           |  +----\83r\83b\83g\83T\83C\83Y----+\r
28  |        |           |  |                    |\r
29 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0 \r
30 </pre>\r
31 </p>\r
32 <p>\r
33 \8ew\92è\82Ì\82È\82¢\83r\83b\83g\82Í\8fí\82É0\82Å\82 \82é. \82µ\82©\82µ, \8f«\97\88\82Ì\83o\81[\83W\83\87\83\93\82Å\82Í\8eg\82¤\82©\82à\82µ\82ê\82È\82¢.\r
34 \93Á\92è\82Ì\83r\83b\83g\82ð\92²\8d¸\82·\82é\83}\83N\83\8d\82à\82 \82é.\r
35 </p>\r
36 <h3>\89¹\90º\8c`\8e®\82Ì\83}\83N\83\8d</h3>\r
37 <table border="1" summary="">\r
38 <tr><td>SDL_AUDIO_MASK_BITSIZE</td><td>(0xFF)</td></tr>\r
39 <tr><td>SDL_AUDIO_MASK_DATATYPE</td><td>(1&lt;&lt8)</td></tr>\r
40 <tr><td>SDL_AUDIO_MASK_ENDIAN</td><td>(1&lt;&lt12)</td></tr>\r
41 <tr><td>SDL_AUDIO_MASK_SIGNED</td><td>(1&lt;&lt15)</td></tr>\r
42 <tr><td>SDL_AUDIO_MASK_BITSIZE(x)</td><td>(x &amp; SDL_AUDIO_MASK_BITSIZE)</td></tr>\r
43 <tr><td>SDL_AUDIO_MASK_ISFLOAT(x)</td><td>(x &amp; SDL_AUDIO_MASK_DATATYPE)</td></tr>\r
44 <tr><td>SDL_AUDIO_MASK_ISBIGENDIAN(x)</td><td>(x &amp; SDL_AUDIO_MASK_ENDIAN)</td></tr>\r
45 <tr><td>SDL_AUDIO_MASK_ISSIGNED(x)</td><td>(x &amp; SDL_AUDIO_MASK_SIGNED)</td></tr>\r
46 <tr><td>SDL_AUDIO_MASK_ISINT(x)</td><td>(!SDL_AUDIO_ISFLOAT(x))</td></tr>\r
47 <tr><td>SDL_AUDIO_MASK_ISLITTLEENDIAN(x)</td><td>(!SDL_AUDIO_ISBIGENDIAN(x))</td></tr>\r
48 <tr><td>SDL_AUDIO_MASK_ISUNSIGNED(x)</td><td>(!SDL_AUDIO_ISSIGNED(x))</td></tr>\r
49 </table>\r
50 <h3>\89¹\90º\8c`\8e®\82Ì\92l</h3>\r
51 <table border="1" summary="">\r
52 <tr><th colspan="2" align="center">8bit</th></tr>\r
53 <tr><td>AUDIO_S8</td><td>8bit\95\84\8d\86\82 \82è\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
54 <tr><td>AUDIO_U8</td><td>8bit\95\84\8d\86\82È\82µ\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
55 <tr><th colspan="2" align="center">16bit</th></tr>\r
56 <tr><td>AUDIO_S16LSB</td><td>16bit\95\84\8d\86\82 \82è\83\8a\83g\83\8b\83G\83\93\83f\83B\83A\83\93\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
57 <tr><td>AUDIO_S16MSB</td><td>16bit\95\84\8d\86\82 \82è\83r\83b\83O\83G\83\93\83f\83B\83A\83\93\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
58 <tr><td>AUDIO_S16SYS</td><td>16bit\95\84\8d\86\82 \82è\83V\83X\83e\83\80\82Æ\93¯\82\83o\83C\83g\8f\87\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
59 <tr><td>AUDIO_S16</td><td>AUDIO_S16LSB</td></tr>\r
60 <tr><td>AUDIO_U16LSB</td><td>16bit\95\84\8d\86\82È\82µ\83\8a\83g\83\8b\83G\83\93\83f\83B\83A\83\93\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
61 <tr><td>AUDIO_U16MSB</td><td>16bit\95\84\8d\86\82È\82µ\83r\83b\83O\83G\83\93\83f\83B\83A\83\93\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
62 <tr><td>AUDIO_U16SYS</td><td>16bit\95\84\8d\86\82È\82µ\83V\83X\83e\83\80\82Æ\93¯\82\83o\83C\83g\8f\87\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
63 <tr><td>AUDIO_U16</td><td>AUDIO_S16LSB</td></tr>\r
64 <tr><th colspan="2" align="center">32bit</th></tr>\r
65 <tr><td>AUDIO_S32LSB</td><td>32bit\90®\90\94\83\8a\83g\83\8b\83G\83\93\83f\83B\83A\83\93\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
66 <tr><td>AUDIO_S32MSB</td><td>32bit\90®\90\94\83r\83b\83O\83G\83\93\83f\83B\83A\83\93\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
67 <tr><td>AUDIO_S32SYS</td><td>32bit\90®\90\94\83V\83X\83e\83\80\82Æ\93¯\82\83o\83C\83g\8f\87\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
68 <tr><td>AUDIO_S32</td><td>AUDIO_S32LSB</th></tr>\r
69 <tr><th colspan="2" align="center">\95\82\93®\8f¬\90\94\93_</th></tr>\r
70 <tr><td>AUDIO_F32LSB</td><td>32bit\95\82\93®\8f¬\90\94\93_\83\8a\83g\83\8b\83G\83\93\83f\83B\83A\83\93\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
71 <tr><td>AUDIO_F32MSB</td><td>32bit\95\82\93®\8f¬\90\94\93_\83r\83b\83O\83G\83\93\83f\83B\83A\83\93\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
72 <tr><td>AUDIO_F32SYS</td><td>32bit\95\82\93®\8f¬\90\94\93_\83V\83X\83e\83\80\82Æ\93¯\82\83o\83C\83g\8f\87\83T\83\93\83v\83\8a\83\93\83O</td></tr>\r
73 <tr><td>AUDIO_F32</td><td>AUDIO_F32LSB</td></tr>\r
74 </table>\r
75 <h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>\r
76 <code>\r
77 <pre>\r
78 extern SDL_AudioFormat fmt;\r
79 if (SDL_AUDIO_ISFLOAT(fmt)) {\r
80     printf("\95\82\93®\8f¬\90\94\93_\83f\81[\83^\n");\r
81 } else {\r
82     printf("\90®\90\94\83f\81[\83^\n");\r
83 }\r
84 printf("\83T\83\93\83v\83\8b\82 \82½\82è%d\83r\83b\83g\n", (int) SDL_AUDIO_BITSIZE(fmt));\r
85 </pre>\r
86 </code>\r
87 <h2>\8fÚ\8d×</h2>\r
88 \83f\81[\83^\8c`\8e®\82Ì\8ev\82¢\8d\9e\82Ý\82É\92\8d\88Ó\82·\82é\82±\82Æ.\r
89 \97á\82¦\82Î, SDL_AUDIO_ISFLOAT()\82Ì\83`\83F\83b\83N\82Ì\82Ý\82Å32bit\83f\81[\83^\82ð\91z\92è\82·\82é\82Æ, \8cã\82Ì\83o\81[\83W\83\87\83\93\82Å64bit\95\82\93®\8f¬\90\94\93_\82ª\92Ç\89Á\82³\82ê\82½\82Æ\82«\96â\91è\82ª\94­\90\82·\82é.\r
90 <h2>\8aÖ\98A\8d\80\96Ú(\8d\\91¢\91Ì)</h2>\r
91 <a href="SDL_AudioCVT.html">SDL_AudioCVT</a><br>\r
92 <a href="SDL_AudioSpec.html">SDL_AudioSpec</a><br>\r
93 <h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>\r
94 <a href="SDL_BuildAudioCVT.html">SDL_BuildAudioCVT</a><br>\r
95 <a href="SDL_MixAudioFormat.html">SDL_MixAudioFormat</a><br>\r
96 <h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>\r
97 <a href="https://wiki.libsdl.org/SDL_AudioFormat">SDL_AudioFormat - SDL Wiki</a><br>\r
98 <hr>\r
99 </body>\r
100 </html>\r