/usr/share/doc/libkxl0-dev/html/kxlendsound.html is in libkxl0-dev 1.1.7-16.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
<meta name="GENERATOR" content="emacs">
<meta name="Author" content="kacchan">
<title>KXL_EndSound</title>
</head>
<body text="#000000" bgcolor="#f0f0dc" link="#3366FF" vlink="#3366FF" alink="#FF0000">
<a href="kxlplaysound.html">Prev</a>
<a href="KXL.html">Top</a>
<a href="kxltimer.html">Next</a>
<hr>
<b>Name</b><br><br>
<font size=+2>KXL_EndSound</font><br><br>
<b>Synopsis</b><br>
<pre>KXL_EndSound -- Shut down sound server.
</pre><br>
<b>Description</b><br>
<pre>void KXL_EndSound(void);</pre><br>
<b>Arguments</b><br><br>
Nothing.
<br><br><br>
<b>Return Value</b><br><br>
Nothing.
<br><br><br>
<b>Exsample</b><br>
<pre>
<a href="./sound1.wav">sound1.wav</a>
<a href="./sound2.wav">sound1.wav</a>
<a href="./sound3.wav">sound1.wav</a>
#include <KXL.h>
int main(void)
{
Bool flag = False;
Uint8 *wavlist[] = {
"sound1", // The sound of No. 0
"sound2", // The sound of No. 1
"sound3", // The sound of No. 2
"" // Indispensable
};
KXL_CreateWindow(200, 100, "kxl.org",
KXL_EVENT_EXPOSURE_MASK |
KXL_EVENT_KEY_PRESS_MASK);
KXL_InitSound(".", wavlist);
while (flag == False) {
while (KXL_CheckEvents() == False);
switch (KXL_GetEvents()) {
case KXL_EVENT_EXPOSE:
KXL_ClearFrameImm(0, 0, 200, 100);
KXL_PutText(8, 20, "[1] - sound1");
KXL_PutText(8, 40, "[2] - sound2");
KXL_PutText(8, 60, "[3] - sound3");
KXL_PutText(8, 99, "[4] - exit");
KXL_UpDateImm(0, 0, 200, 100);
break;;
case KXL_EVENT_KEY_PRESS:
switch (KXL_GetKey()) {
case KXL_KEY_1:
KXL_PlaySound(0, KXL_SOUND_PLAY);
break;
case KXL_KEY_2:
KXL_PlaySound(1, KXL_SOUND_PLAY);
break;
case KXL_KEY_3:
KXL_PlaySound(2, KXL_SOUND_PLAY);
break;
case KXL_KEY_4:
flag = True;
break;
}
}
}
<b>KXL_EndSound();</b>
KXL_DeleteWindow();
return 0;
}
</pre>
</body>
</html>
|