X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=SDL_UnlockAudioDevice.html;h=58633f8034bfb9c9bc79e04f10015afdc22d2162;hb=1b6b777963251c9b644149100832afe89af5ca9a;hp=809cf5c623b7fd32c15f28c2941169aed191a473;hpb=330a262e6543b2a70df3bae6595db44b28f360ee;p=sdl2referencejp%2Fsdl2referencejp.git diff --git a/SDL_UnlockAudioDevice.html b/SDL_UnlockAudioDevice.html index 809cf5c..58633f8 100644 --- a/SDL_UnlockAudioDevice.html +++ b/SDL_UnlockAudioDevice.html @@ -19,11 +19,34 @@
dev | bNðð·éI[fBIfoCXÌID |
+
+
+
+void MyAudioCallback(void *userdata, Uint8* stream, int len)
+{
+ printf("I[fBIR[obNJn!\n");
+ SDL_memset(stream, 0, len); // ½¾¾ÙÌÝ
+ printf("I[fBIR[obNI¹!\n");
+}
+
+// ÀÛÉÍêxÉ2bà~ßÈ¢æ¤É·é±Æ
+extern SDL_AudioDeviceID devid;
+SDL_Delay(2000); // R[obNÍ2bÔ®ì·é
+SDL_LockAudioDevice(devid);
+printf("¡©çI[eBIR[obNÍ®ìµÈ¢!\n");
+SDL_Delay(2000); // R[obNÍ2bÔ®ìµÈ¢
+printf("OK, AbNµ½!\n");
+SDL_UnlockAudioDevice(devid);
+SDL_Delay(2000); // R[obNÍ2bÔ®ì·é
+
+