OSDN Git Service

SDL_atomic_t サンプルコードを修正 https://wiki.libsdl.org/SDL_atomic_t?action=diff&rev1=3&rev2=4
[sdl2referencejp/sdl2referencejp.git] / SDL_CloseAudioDevice.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_CloseAudioDevice</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_CloseAudioDevice\r
13 <hr>\r
14 <h1>SDL_CloseAudioDevice</h1>\r
15 \89¹\90º\8f\88\97\9d\82ð\8fI\97¹\82µ\83I\81[\83f\83B\83I\83f\83o\83C\83X\82ð\95Â\82\82é\r
16 <h2>\8d\\95¶</h2>\r
17 <code>void SDL_CloseAudioDevice(SDL_AudioDeviceID dev)</code>\r
18 <h2>\88ø\90\94</h2>\r
19 <table border="1" summary="SDL_CloseAudioDevice">\r
20 <tr><td>dev</td><td><a href="SDL_OpenAudioDevice.html">SDL_OpenAudioDevice()</a>\82Å\8aJ\82¢\82½\83I\81[\83f\83B\83I\83f\83o\83C\83X\82ÌID</td></tr>\r
21 </table>\r
22 <h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>\r
23 <p>\r
24 <code>\r
25 <pre>\r
26 extern SDL_AudioSpec want;\r
27 SDL_AudioDeviceID devid = SDL_OpenAudioDevice(NULL, 0, &amp;want, NULL, 0);\r
28 if (devid > 0) {\r
29     SDL_PauseAudioDevice(devid, 0);\r
30     SDL_Delay(5000);  // \83I\81[\83f\83B\83I\83R\81[\83\8b\83o\83b\83N\82ð5\95b\8aÔ\8eÀ\8ds\82³\82¹\82é\r
31     SDL_CloseAudioDevice(devid);\r
32 }\r
33 </pre>\r
34 </code>\r
35 </p>\r
36 <h2>\8fÚ\8d×</h2>\r
37 <p>\r
38 \83A\83v\83\8a\83P\81[\83V\83\87\83\93\82Í\95K\97v\82ª\82È\82­\82È\82Á\82½\8aJ\82©\82ê\82½\83I\81[\83f\83B\83I\83f\83o\83C\83X\82ð\95Â\82\82È\82¯\82ê\82Î\82È\82ç\82È\82¢.\r
39 \82±\82Ì\8aÖ\90\94\82ð\8cÄ\82Ô\82Æ, \82»\82Ì\83f\83o\83C\83X\82Ì\83R\81[\83\8b\83o\83b\83N\8aÖ\90\94\82Ì\8eÀ\8ds\82ª\8fI\82í\82é\82Ü\82Å\91Ò\82¿, \83I\81[\83f\83B\83I\82Ì\83n\81[\83h\83E\83F\83A\82ð\89ð\95ú\82µ, \93à\95\94\8fó\91Ô\82Ì\8cã\8f\88\97\9d\82ð\8ds\82¤.\r
40 \82±\82Ì\8aÖ\90\94\82©\82ç\96ß\82é\82Æ, \82»\82Ì\83f\83o\83C\83X\82©\82ç\8dÄ\90\82³\82ê\82é\82±\82Æ\82Í\82È\82¢.\r
41 </p>\r
42 <p>\r
43 \83f\83o\83C\83XID\82Í\83f\83o\83C\83X\82ª\95Â\82\82é\82Æ\82·\82®\82É\96³\8cø\82É\82È\82é.\r
44 \82»\82µ\82Ä, \90V\82µ\82­<a href="SDL_OpenAudioDevice.html">SDL_OpenAudioDevice()</a>\82ª\8cÄ\82Î\82ê\82é\82Æ, \82·\82®\82É\8dÄ\97\98\97p\82³\82ê\82é.\r
45 </p>\r
46 <h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>\r
47 <a href="SDL_OpenAudioDevice.html">SDL_OpenAudioDevice</a><br>\r
48 <h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>\r
49 <a href="https://wiki.libsdl.org/SDL_CloseAudioDevice">SDL_CloseAudioDevice - SDL Wiki</a>\r
50 <hr>\r
51 </body>\r
52 </html>\r