~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to doc/artsbuilder/faq.docbook

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- <?xml version="1.0" ?>
 
2
<!DOCTYPE chapter PUBLIC "-//KDE//DTD DocBook XML V4.1-Based Variant V1.0//EN" "dtd/kdex.dtd">
 
3
To validate or process this file as a standalone document, uncomment
 
4
this prolog. Be sure to comment it out again when you are done -->
 
5
<chapter id="faq">
 
6
<title>Questions and answers</title>
 
7
 
 
8
<para>
 
9
This section answers some frequently asked questions about &arts;.
 
10
</para>
 
11
 
 
12
<sect1 id="faq-general">
 
13
<title>General Questions</title>
 
14
 
 
15
<qandaset id="faqlist">
 
16
<qandaentry>
 
17
<question>
 
18
<para>
 
19
Does &kde; support my sound card for audio output?
 
20
</para>
 
21
</question>
 
22
 
 
23
<answer>
 
24
<para>
 
25
&kde; uses &arts; to play sound, and &arts; uses the &Linux; kernel
 
26
sound drivers, either <acronym>OSS</acronym> or <acronym>ALSA</acronym>
 
27
(using <acronym>OSS</acronym> emulation). If your sound card is
 
28
supported by either <acronym>ALSA</acronym> or <acronym>OSS</acronym>
 
29
and properly configured (&ie; any other &Linux; application can output
 
30
sound), it will work.
 
31
</para>
 
32
</answer>
 
33
</qandaentry>
 
34
 
 
35
<qandaentry>
 
36
<question>
 
37
<para>
 
38
Is there sound support on platforms other than &Linux;?
 
39
</para>
 
40
</question>
 
41
 
 
42
<answer>
 
43
<para>
 
44
There is currently only support for <acronym>OSS</acronym> (or
 
45
compatible) drivers on other platforms (&eg; FreeBSD). You are welcome
 
46
to contribute by adding support for other platforms. The relevant source
 
47
code is <filename>kdelibs/arts/flow/audiosubsys.cc</filename>.
 
48
</para>
 
49
</answer>
 
50
</qandaentry>
 
51
 
 
52
<qandaentry>
 
53
<question>
 
54
<para>
 
55
I can't play <literal role="extension">wav</literal> files with &artsd;!
 
56
</para>
 
57
</question>
 
58
 
 
59
<answer>
 
60
<para>
 
61
Check that &artsd; is linked to <filename>libaudiofile</filename>
 
62
(<userinput><command>ldd</command>
 
63
<parameter>artsd</parameter></userinput>). If it isn't, download
 
64
kdesupport, recompile everything, and it will work.
 
65
</para>
 
66
</answer>
 
67
</qandaentry>
 
68
 
 
69
<qandaentry>
 
70
<question>
 
71
<para>
 
72
I hear sound when logged in as <systemitem
 
73
class="username">root</systemitem> but no other users have sound!
 
74
</para>
 
75
</question>
 
76
 
 
77
<answer>
 
78
<para>
 
79
The permissions of the file <filename
 
80
class="devicefile">/dev/dsp</filename> affect which users will have
 
81
sound. To allow everyone to use it, do this:
 
82
</para>
 
83
 
 
84
<procedure>
 
85
<step>
 
86
<para>
 
87
Log in as <systemitem class="username">root</systemitem>.
 
88
</para>
 
89
</step>
 
90
 
 
91
<step>
 
92
<para>
 
93
Open a &konqueror; window.
 
94
</para>
 
95
</step>
 
96
 
 
97
<step>
 
98
<para>
 
99
Go into the <filename class="directory">/dev</filename> directory.
 
100
</para>
 
101
</step>
 
102
 
 
103
<step>
 
104
<para>
 
105
Click on the file <filename>dsp</filename> with the
 
106
<mousebutton>right</mousebutton> mouse button, and choose properties.
 
107
</para>
 
108
</step>
 
109
 
 
110
<step>
 
111
<para>
 
112
Click on the <guilabel>Permissions</guilabel> tab.
 
113
</para>
 
114
</step>
 
115
 
 
116
<step>
 
117
<para>
 
118
Check the <guilabel>Read</guilabel> and <guilabel>Write</guilabel> check
 
119
boxes in all sections.
 
120
</para>
 
121
</step>
 
122
 
 
123
<step>
 
124
<para>
 
125
Click on <guibutton>OK</guibutton>.
 
126
</para>
 
127
</step>
 
128
</procedure>
 
129
 
 
130
<para>
 
131
You can achieve the same effect in a terminal window using the command
 
132
<userinput><command>chmod</command> <option>666</option>
 
133
<parameter>/dev/dsp</parameter></userinput>.
 
134
</para>
 
135
 
 
136
<para>
 
137
For restricting access to sound to specific users, you can use group
 
138
permissions. On some &Linux; distributions, for instance Debian/Potato,
 
139
<filename class="devicefile">/dev/dsp</filename> is already owned by a
 
140
group called <systemitem class="groupname">audio</systemitem>, so all
 
141
you need to do is add the users to this group.
 
142
</para>
 
143
</answer>
 
144
</qandaentry>
 
145
 
 
146
<qandaentry>
 
147
<question>
 
148
<para>
 
149
This helps for &artsd;, but what about &kmix;, &kmid;, &kscd;,&etc;?
 
150
</para>
 
151
</question>
 
152
<answer>
 
153
 
 
154
<para>
 
155
There are various other devices which provide functionality accessed by
 
156
multimedia applications. You can treat them in the same way, either by
 
157
making them accessible for everyone, or using groups to control
 
158
access. Here is a list, which may still be incomplete (also if there are
 
159
various devices in a form like <filename
 
160
class="devicefile">midi0</filename>, <filename
 
161
class="devicefile">midi1</filename>, ..., then only the 0-version is
 
162
listed here):
 
163
</para>
 
164
 
 
165
<itemizedlist>
 
166
<listitem>
 
167
<para>
 
168
<filename class="devicefile">/dev/admmidi0</filename>
 
169
</para>
 
170
</listitem>
 
171
<listitem>
 
172
<para>
 
173
<filename class="devicefile">/dev/adsp0</filename>
 
174
</para>
 
175
</listitem>
 
176
<listitem>
 
177
<para>
 
178
<filename class="devicefile">/dev/amidi0</filename>
 
179
</para>
 
180
</listitem>
 
181
<listitem>
 
182
<para>
 
183
<filename class="devicefile">/dev/amixer0</filename>
 
184
</para>
 
185
</listitem>
 
186
<listitem>
 
187
<para>
 
188
<filename class="devicefile">/dev/audio</filename>
 
189
</para>
 
190
</listitem>
 
191
<listitem>
 
192
<para>
 
193
<filename class="devicefile">/dev/audio0</filename>
 
194
</para>
 
195
</listitem>
 
196
<listitem>
 
197
<para>
 
198
<filename class="devicefile">/dev/cdrom</filename>
 
199
</para>
 
200
</listitem>
 
201
<listitem>
 
202
<para>
 
203
<filename class="devicefile">/dev/dmfm0</filename>
 
204
</para>
 
205
</listitem>
 
206
<listitem>
 
207
<para>
 
208
<filename class="devicefile">/dev/dmmidi0</filename>
 
209
</para>
 
210
</listitem>
 
211
<listitem>
 
212
<para>
 
213
<filename class="devicefile">/dev/dsp</filename>
 
214
</para>
 
215
</listitem>
 
216
<listitem>
 
217
<para>
 
218
<filename class="devicefile">/dev/dsp0</filename>
 
219
</para>
 
220
</listitem>
 
221
<listitem>
 
222
<para>
 
223
<filename class="devicefile">/dev/midi0</filename>
 
224
</para>
 
225
</listitem>
 
226
<listitem>
 
227
<para>
 
228
<filename class="devicefile">/dev/midi0</filename>
 
229
</para>
 
230
</listitem>
 
231
<listitem>
 
232
<para>
 
233
<filename class="devicefile">/dev/midi00</filename>
 
234
</para>
 
235
</listitem>
 
236
<listitem>
 
237
<para>
 
238
<filename class="devicefile">/dev/midi00</filename>
 
239
</para>
 
240
</listitem>
 
241
<listitem>
 
242
<para>
 
243
<filename class="devicefile">/dev/mixer</filename>
 
244
</para>
 
245
</listitem>
 
246
<listitem>
 
247
<para>
 
248
<filename class="devicefile">/dev/mixer0</filename>
 
249
</para>
 
250
</listitem>
 
251
<listitem>
 
252
<para>
 
253
<filename class="devicefile">/dev/mpu401data</filename>
 
254
</para>
 
255
</listitem>
 
256
<listitem>
 
257
<para>
 
258
<filename class="devicefile">/dev/mpu401stat</filename>
 
259
</para>
 
260
</listitem>
 
261
<listitem>
 
262
<para>
 
263
<filename class="devicefile">/dev/music</filename>
 
264
</para>
 
265
</listitem>
 
266
<listitem>
 
267
<para>
 
268
<filename class="devicefile">/dev/rmidi0</filename>
 
269
</para>
 
270
</listitem>
 
271
<listitem>
 
272
<para>
 
273
<filename class="devicefile">/dev/rtc</filename>
 
274
</para>
 
275
</listitem>
 
276
<listitem>
 
277
<para>
 
278
<filename class="devicefile">/dev/sequencer</filename>
 
279
</para>
 
280
</listitem>
 
281
<listitem>
 
282
<para>
 
283
<filename class="devicefile">/dev/smpte0</filename>
 
284
</para>
 
285
</listitem>
 
286
<listitem>
 
287
<para>
 
288
<filename class="devicefile">/dev/sndstat</filename>
 
289
</para>
 
290
</listitem>
 
291
</itemizedlist>
 
292
</answer>
 
293
</qandaentry>
 
294
 
 
295
<qandaentry>
 
296
<question>
 
297
<para>What can I do if artsd doesn't start or crashes while running?</para>
 
298
</question>
 
299
 
 
300
<answer>
 
301
<para>
 
302
First of all: try using the default settings in &kcontrol; (or if you
 
303
are starting manually, don't give additional options besides maybe
 
304
<userinput><option>-F</option><parameter>10</parameter>
 
305
<option>-S</option><parameter>4096</parameter></userinput> for
 
306
latency). Especially <emphasis>full duplex is likely to break</emphasis>
 
307
with various drivers, so try disabling it.
 
308
</para>
 
309
 
 
310
<para>
 
311
A good way to figure out why &artsd; doesn't start (or crashes while
 
312
running) is to start it manually. Open a &konsole; window, and do:
 
313
</para>
 
314
 
 
315
<screen width="40"><prompt>%</prompt> <userinput><command>artsd</command> <option>-F</option><parameter>10</parameter> <option>-S</option><parameter>4096</parameter>></userinput></screen>
 
316
 
 
317
<para>
 
318
You can also add the <option>-l0</option> option, which will print more
 
319
information about what is happening, like this:
 
320
</para>
 
321
<screen width="40"><prompt>%</prompt> <userinput><command>artsd</command> <option>-l0</option> <option>-F</option><parameter>10</parameter> <option>-S</option><parameter>4096</parameter></userinput></screen>
 
322
 
 
323
<para>
 
324
Doing so, you will probably get some useful information why it didn't
 
325
start. Or, if it crashes when doing this-and-that, you can do
 
326
this-and-that, and see <quote>how</quote> it crashes. If you want to
 
327
report a bug, producing a backtrace with <command>gdb</command> and/or
 
328
an <command>strace</command> may help finding the problem.
 
329
</para>
 
330
</answer>
 
331
</qandaentry>
 
332
 
 
333
<qandaentry>
 
334
<question>
 
335
<para>Can I relocate &artsd; (move compiled files to another
 
336
directory)?</para>
 
337
</question>
 
338
 
 
339
<answer>
 
340
<para>
 
341
You can't relocate &arts; perfectly. The problem is that &artswrapper;
 
342
has the location of &artsd; compiled in due to security reasons. You can
 
343
however use the <filename>.mcoprc</filename> file
 
344
(TraderPath/ExtensionPath entries) to at least make a relocated &artsd;
 
345
find it's components. See the <link linkend="the-mcoprc-file">chapter
 
346
about the <filename>.mcoprc</filename> file</link> for details on how to
 
347
do this.
 
348
</para>
 
349
</answer>
 
350
</qandaentry>
 
351
 
 
352
<qandaentry>
 
353
<question>
 
354
<para>Can I compile &arts; with gcc-3.0?</para>
 
355
</question>
 
356
 
 
357
<answer>
 
358
<para>
 
359
Short answer: no, &arts; will not work if you compile it with gcc-3.0.
 
360
</para>
 
361
 
 
362
<para>
 
363
Long answer: In the official release, there are two gcc-3.0 bugs which affect
 
364
&arts;. The first, gcc-3.0 bug c++/2733 is relatively harmless (and has to do
 
365
with problems with the asm statement). It breaks compilation of convert.cc. It
 
366
has been fixed in the gcc-3.0 CVS, and will no longer be a problem with
 
367
gcc-3.0.1 and higher. A workaround has also been added to the CVS version
 
368
of KDE/aRts.
 
369
</para>
 
370
<para>
 
371
The second gcc-3.0 bug, c++/3145 (which is generation of wrong code for some
 
372
cases of multiple virtual inheritance) is critical. Applications like &artsd;
 
373
will simply crash on startup when compiled with gcc-3.0. Even if some progress
 
374
has been made in the gcc-3.0 branch at time of this writing, still &artsd;
 
375
crashes quite often, unpredictably.
 
376
</para>
 
377
</answer>
 
378
</qandaentry>
 
379
<qandaentry>
 
380
<question>
 
381
<para>What applications run under &arts;?</para>
 
382
</question>
 
383
<answer>
 
384
 
 
385
<para>
 
386
Obviously, all of the applications included with &kde; are
 
387
&arts;-aware. This includes:
 
388
</para>
 
389
 
 
390
<itemizedlist>
 
391
<listitem><para>&noatun;</para></listitem>
 
392
<listitem><para>&artsbuilder;</para></listitem>
 
393
<listitem><para>&aktion;</para></listitem>
 
394
<listitem><para>&kmid;</para></listitem>
 
395
<listitem><para>&kmidi;</para></listitem>
 
396
<listitem><para>&kmix;</para></listitem>
 
397
<listitem><para>&kscd;</para></listitem>
 
398
<listitem><para>&kde; games such as &kpoker; and
 
399
&ktuberling;</para></listitem>
 
400
</itemizedlist>
 
401
 
 
402
<para>
 
403
Some &kde; applications that are not yet included in the &kde; release
 
404
(&eg; in kdenonbeta) also support &arts;, including:
 
405
</para>
 
406
 
 
407
<itemizedlist>
 
408
<listitem><para>&brahms;</para></listitem>
 
409
<listitem><para><application>Kaboodle</application></para></listitem>
 
410
<listitem><para><application>Kdao</application></para></listitem>
 
411
</itemizedlist>
 
412
 
 
413
<para>
 
414
The following non-&kde; applications are known to work with &arts;:
 
415
</para>
 
416
 
 
417
<itemizedlist>
 
418
<listitem><para><application>xmms</application> (with &arts;
 
419
plug-in)</para></listitem>
 
420
<listitem><para>Real Networks <application>RealPlayer</application> 8.0
 
421
(works with &artsdsp;; native &arts; support is being
 
422
considered)</para></listitem>
 
423
</itemizedlist>
 
424
 
 
425
<para>
 
426
The following applications are known <emphasis>not</emphasis> to work
 
427
with &arts;:
 
428
</para>
 
429
 
 
430
<itemizedlist>
 
431
<listitem><para>none</para></listitem>
 
432
</itemizedlist>
 
433
 
 
434
<para>
 
435
See also the answers to the questions in the section on
 
436
<link linkend="faq-non-arts">non-&arts; applications</link>.
 
437
</para>
 
438
 
 
439
<para>
 
440
This section is incomplete -- if you have more information on supported
 
441
and unsupported applications, please send them to the author so they can
 
442
be included here.
 
443
</para>
 
444
</answer>
 
445
</qandaentry>
 
446
 
 
447
</qandaset>
 
448
 
 
449
</sect1>
 
450
 
 
451
<sect1 id="faq-non-arts">
 
452
<title>Non-&arts; Applications</title>
 
453
 
 
454
<qandaset>
 
455
 
 
456
<qandaentry>
 
457
<question>
 
458
<para>
 
459
As soon as &kde; is running, no other application can access my sound device!
 
460
</para>
 
461
</question>
 
462
<answer>
 
463
<para>
 
464
Since the &arts; sound server used by &kde; is running, it is using the
 
465
sound device. If the server is idle for 60 seconds, it will
 
466
auto-suspend and release it automatically.
 
467
</para>
 
468
</answer>
 
469
</qandaentry>
 
470
 
 
471
<qandaentry>
 
472
<question>
 
473
<para>
 
474
You said it suspends after 60 seconds, it doesn't for me!
 
475
</para>
 
476
</question>
 
477
<answer>
 
478
<para>
 
479
If you start artsd from the KDE control panel, the default is to suspend
 
480
after 60 seconds. If you start artsd from the command line you need to
 
481
use the -s option to specify the autosuspend time, otherwise it will
 
482
default to disabling the autosuspend feature.
 
483
</para>
 
484
<para>
 
485
Currently it doesn't suspend when using full duplex. Turn full duplex
 
486
off from the &kcontrol; and it will suspend. Disabling full duplex is
 
487
generally a good idea anyway if you only use &arts; for playing audio
 
488
and not recording.
 
489
</para>
 
490
</answer>
 
491
</qandaentry>
 
492
 
 
493
<qandaentry>
 
494
<question>
 
495
<para>
 
496
How can I run old, non-&arts; applications?
 
497
</para>
 
498
</question>
 
499
 
 
500
<answer>
 
501
<para>
 
502
Run them using the &artsdsp;. For instance, if you normally would run:
 
503
</para>
 
504
 
 
505
<screen><prompt>&percnt;</prompt> <userinput><command>mpg123</command> <option>foo.mp3</option></userinput></screen>
 
506
 
 
507
<para>instead use:</para>
 
508
 
 
509
<screen><prompt>&percnt;</prompt> <userinput><command>artsdsp</command> <option>mpg123 foo.mp3</option></userinput></screen>
 
510
 
 
511
<para>
 
512
This will redirect the sound output to &arts;. This method doesn't
 
513
require changes to the applications. It is something of an ugly hack
 
514
however, and does not yet fully support all features of the sound card
 
515
device, so some applications may not work.
 
516
</para>
 
517
</answer>
 
518
</qandaentry>
 
519
 
 
520
<qandaentry>
 
521
<question>
 
522
<para>
 
523
I can't run &artsdsp; with any application, it always crashes!
 
524
</para>
 
525
</question>
 
526
<answer>
 
527
<para>
 
528
You need a recent version of the glibc library; &artsdsp; will not work
 
529
reliably on some older &Linux; distributions. For instance, on Debian
 
530
2.1 (which is glibc 2.0 based) it doesn't work, while on Debian 2.2
 
531
(which is glibc 2.1.3 based), it does.
 
532
</para>
 
533
</answer>
 
534
</qandaentry>
 
535
 
 
536
<qandaentry>
 
537
<question>
 
538
<para>
 
539
Are there theoretical limitations with some applications that will
 
540
prevent them from ever working with &artsdsp;?
 
541
</para>
 
542
</question>
 
543
<answer>
 
544
<para>
 
545
No. Using &artsdsp; can result in slightly more latency and
 
546
<acronym>CPU</acronym> usage that using the &arts;
 
547
<acronym>API</acronym>s directly. Other than that, any application that
 
548
doesn't work should be considered a bug in &artsdsp;. The technique used
 
549
by &artsdsp; should, if implemented properly, allow
 
550
<emphasis>every</emphasis> application to work with it (including large
 
551
applications like <application>Quake</application> 3).
 
552
</para>
 
553
</answer>
 
554
</qandaentry>
 
555
 
 
556
<qandaentry>
 
557
<question>
 
558
<para>
 
559
What can I do if an application doesn't work with &artsdsp;?
 
560
</para>
 
561
</question>
 
562
<answer>
 
563
<para>
 
564
You can wait for &artsd; to suspend or use the command
 
565
<userinput><command>artsshell</command>
 
566
<option>suspend</option></userinput> to ask the server to suspend
 
567
itself. You will only be able to suspend the server if no &arts;
 
568
applications are currently using it, and no &arts; applications will be
 
569
able to run when the server is suspended.
 
570
</para>
 
571
 
 
572
<para>
 
573
If the server is busy, a crude but effective way to get rid of it is:
 
574
</para>
 
575
 
 
576
 
 
577
<screen><prompt>&percnt;</prompt> <userinput><command>killall</command> <option>artsd</option> ; <command>killall</command> <option>artswrapper</option></userinput>
 
578
<lineannotation>Now start your own application.</lineannotation>
 
579
<prompt>&percnt;</prompt> <userinput><command>kcminit</command> <option>arts</option></userinput>
 
580
</screen>
 
581
 
 
582
<para>
 
583
Any currently running &arts; applications may crash, however, once you
 
584
kill the server.
 
585
</para>
 
586
</answer>
 
587
</qandaentry>
 
588
<qandaentry>
 
589
<question>
 
590
<para>
 
591
What about applications written for &kde; 1.x?
 
592
</para>
 
593
</question>
 
594
<answer>
 
595
<para>
 
596
If you are running &kde; 1.x applications, which output sound via the
 
597
&kde; 1 audio server, you will need to run
 
598
<application>kaudioserver</application> to make it work. You can start
 
599
<application>kaudioserver</application> in the same way than other
 
600
non-&arts;-applications:
 
601
</para>
 
602
 
 
603
<screen>
 
604
<prompt>&percnt;</prompt> <userinput><command>artsdsp</command> <option>kaudioserver</option></userinput>
 
605
</screen>
 
606
 
 
607
<para>
 
608
You will need to have installed kaudioserver (from the same source where
 
609
you got your &kde; 1.x applications from) - it belongs to &kde; 1.x, not
 
610
&kde; 2.
 
611
</para>
 
612
</answer>
 
613
</qandaentry>
 
614
 
 
615
<qandaentry>
 
616
<question>
 
617
<para>
 
618
What about applications using the enlightened sound daemon,
 
619
<acronym>ESD</acronym>?
 
620
</para>
 
621
</question>
 
622
<answer>
 
623
<para>
 
624
The issue is similar than with
 
625
<application>kaudioserver</application>. Such applications will need a
 
626
running esd server. You can start <command>esd</command> via &artsdsp;,
 
627
and every <acronym>ESD</acronym> aware application should work fine,
 
628
like this:
 
629
</para>
 
630
<screen>
 
631
<prompt>&percnt;</prompt> <userinput><command>artsdsp</command> <option>esd</option></userinput>
 
632
</screen>
 
633
</answer>
 
634
</qandaentry>
 
635
 
 
636
</qandaset>
 
637
 
 
638
</sect1>
 
639
 
 
640
<sect1 id="faq-latency">
 
641
<title>Latency</title>
 
642
 
 
643
<qandaset>
 
644
 
 
645
<qandaentry>
 
646
<question>
 
647
<para>
 
648
I sometimes hear short pauses when listening to music, is this a bug?
 
649
</para>
 
650
</question>
 
651
<answer>
 
652
<para>
 
653
This is most likely not a bug, but caused by the fact that the &Linux;
 
654
kernel is not very good at real-time scheduling. There are situations
 
655
where &arts; will not be able to keep up with playback. You can,
 
656
however, enable real-time rights (via &kcontrol;), and use a large
 
657
latency setting (like <guilabel>250ms</guilabel> or <guilabel>don't
 
658
care</guilabel>), which should improve the situation.
 
659
</para>
 
660
</answer>
 
661
</qandaentry>
 
662
 
 
663
<qandaentry>
 
664
<question>
 
665
<para>
 
666
What's the effect of the response time setting?
 
667
</para>
 
668
</question>
 
669
<answer>
 
670
<para>
 
671
The help text for this setting in the &kcontrol; can be misleading.  A
 
672
lower value means that &arts; will take less time to respond to external
 
673
events (&ie;. the time that it takes between closing a window and
 
674
hearing a sound played by &artsd;). It will also use more
 
675
<acronym>CPU</acronym> resources, and be more likely to cause
 
676
dropouts.</para>
 
677
</answer>
 
678
</qandaentry>
 
679
 
 
680
<qandaentry>
 
681
<question>
 
682
<para>
 
683
Is there anything else I can do to prevent pauses?
 
684
</para>
 
685
</question>
 
686
<answer>
 
687
<para>
 
688
For users of <acronym>IDE</acronym> drives, you can use the
 
689
<command>hdparm</command> command to put your <acronym>IDE</acronym>
 
690
drive in <acronym>DMA</acronym> mode. A word of warning: this does not
 
691
work on all hardware, and can result in having to do a hard reset or in
 
692
rare cases, data loss. Read the documentation for the
 
693
<command>hdparm</command> command for more details. I have successfully
 
694
used the following command:
 
695
</para>
 
696
 
 
697
<screen>
 
698
<prompt>&percnt;</prompt> <userinput><command>hdparm</command> <option>-c1</option> <option>-d1</option> <option>-k1</option> <option>-K1</option> <parameter>/dev/hda</parameter></userinput>
 
699
</screen>
 
700
 
 
701
<para>
 
702
You need to run this after every boot, so you might want to place it in
 
703
a system startup script (how to do this distribution specific, on Debian
 
704
&Linux; it is usually put in <filename>/etc/rc.boot</filename>).
 
705
</para>
 
706
</answer>
 
707
</qandaentry>
 
708
 
 
709
<qandaentry>
 
710
<question>
 
711
<para>
 
712
Why is &artsd; taking so much <acronym>CPU</acronym> time?
 
713
</para>
 
714
</question>
 
715
<answer>
 
716
<para>
 
717
Check your response time settings. However, the current version is not
 
718
yet really optimized. This will improve, and until then no real
 
719
prediction can be made how fast &artsd; can or can't be.
 
720
</para>
 
721
</answer>
 
722
</qandaentry>
 
723
</qandaset>
 
724
 
 
725
</sect1>
 
726
 
 
727
<sect1 id="faq-network">
 
728
<title>Network Transparency</title>
 
729
 
 
730
<qandaset>
 
731
 
 
732
<qandaentry>
 
733
<question>
 
734
<para>
 
735
What do I need for network transparency?
 
736
</para>
 
737
</question>
 
738
<answer>
 
739
<para>
 
740
Enable it in the &kcontrol; <guilabel>Sound Server</guilabel> settings
 
741
(<guilabel>enable X11 server for security information</guilabel> and
 
742
<guilabel>network transparency</guilabel>). Then copy your
 
743
<filename>.mcoprc</filename> to all machines you plan to use network
 
744
transparency from. Log in again. Make sure that the hosts that interact
 
745
know each other by name (&ie; they have resolvable names or are in
 
746
<filename>/etc/hosts</filename>).
 
747
</para>
 
748
 
 
749
<para>
 
750
This should be all you need to do. However, if it still doesn't work
 
751
here are some additional details. The &arts; sound server process,
 
752
&artsd;, should only run on one host, the one with the sound card where
 
753
the sound should be played. It can be started automatically on login by
 
754
&kde; (if you configure that in &kcontrol;), or manually using something
 
755
like:
 
756
</para>
 
757
 
 
758
<screen>
 
759
<prompt>&percnt;</prompt> <userinput><command>artsd</command> <option>-n</option> <option>-F</option> <parameter>5</parameter> <option>-S</option> <parameter>8192</parameter></userinput>
 
760
</screen>
 
761
 
 
762
<para>
 
763
The <option>-n</option> parameter is for network transparency, while the
 
764
others configure latency.
 
765
</para>
 
766
 
 
767
<para>
 
768
Your <filename>.mcoprc</filename> file should have this entry:
 
769
</para>
 
770
 
 
771
<screen>
 
772
<userinput>GlobalComm=Arts::X11GlobalComm</userinput>
 
773
</screen>
 
774
 
 
775
<para>
 
776
on all machines involved, in order for network transparency to work,
 
777
This is what is enabled by the <guilabel>X11 server for security
 
778
information</guilabel> control panel setting.
 
779
</para>
 
780
 
 
781
<para>
 
782
Finally, in any &kde; version in the 2.0.x series, there is a bug which
 
783
applies if you don't have a domain name set. Clients of &artsd; try to
 
784
find where to connect to via the <systemitem
 
785
class="systemname"><replaceable>hostname</replaceable>.<replaceable>domainname</replaceable></systemitem>
 
786
combination. If your domain name is empty, it will try to connect to
 
787
<systemitem
 
788
class="systemname"><replaceable>hostname</replaceable></systemitem>. (note
 
789
the extra dot). Adding an entry like this to
 
790
<filename>/etc/hosts</filename> (&ie; <userinput>orion.</userinput> if
 
791
your hostname is <systemitem class="systemname">orion</systemitem>)
 
792
works around the problem.
 
793
</para>
 
794
</answer>
 
795
</qandaentry>
 
796
 
 
797
 
 
798
<qandaentry>
 
799
<question>
 
800
<para>
 
801
How do I debug network transparency if it doesn't work?
 
802
</para>
 
803
</question>
 
804
<answer>
 
805
<para>
 
806
Assuming you have the &kde; source code, go to <filename
 
807
class="directory">kdelibs/arts/examples</filename>, and run
 
808
<userinput><command>make</command> <option>check</option></userinput> to
 
809
compile some programs, including
 
810
<application>referenceinfo</application>. Then run
 
811
</para>
 
812
 
 
813
<screen>
 
814
<prompt>&percnt;</prompt> <userinput><command>./referenceinfo</command> <option>global:Arts&lowbar;SimpleSoundServer</option></userinput>
 
815
</screen>
 
816
 
 
817
<para>
 
818
The output will indicate the host name and port being used by
 
819
&arts;. For example, <computeroutput>tcp:orion:1698</computeroutput>
 
820
would mean that any client trying to use network transparency should
 
821
know how to reach host <systemitem
 
822
class="systemname">orion</systemitem>.
 
823
</para>
 
824
</answer>
 
825
</qandaentry>
 
826
 
 
827
</qandaset>
 
828
 
 
829
</sect1>
 
830
<sect1 id="faq-other">
 
831
<title>Other Issues</title>
 
832
 
 
833
<qandaset>
 
834
 
 
835
<qandaentry>
 
836
<question>
 
837
<para>
 
838
I can't use &artsbuilder;. It crashes when executing a module!
 
839
</para>
 
840
</question>
 
841
<answer>
 
842
<para>
 
843
The most likely cause is that you are using old structures or modules
 
844
which aren't supported with the &kde; 2 version. Unfortunately the
 
845
documentation which is on the web refers to &arts;-0.3.4.1 which is
 
846
quite outdated. The most often reported crash is: that performing an
 
847
execute structure in &artsbuilder; results in the error message
 
848
<errorname>[artsd] Synth_PLAY: audio subsystem is already
 
849
used.</errorname>
 
850
</para>
 
851
 
 
852
<para>
 
853
You should use a Synth_AMAN_PLAY instead of a Synth_PLAY module and the
 
854
problem will go away. Also see the &artsbuilder; help file (hit
 
855
<keycap>F1</keycap> in &artsbuilder;).
 
856
</para>
 
857
 
 
858
<para>
 
859
Recent versions of &artsbuilder; (&kde; 2.1 beta 1 and later) come with
 
860
a set of examples which you can use.
 
861
</para>
 
862
</answer>
 
863
</qandaentry>
 
864
 
 
865
</qandaset>
 
866
 
 
867
</sect1>
 
868
</chapter>