Programming with arts

Arnold Krille arnold at
Mon Sep 15 08:17:15 BST 2003

On Sunday 14 September 2003 22:24, Jorge wrote:
> Am Sonntag, 14. September 2003 20.50 schrieb Arnold Krille:
> > On Sunday 14 September 2003 19:03, Jorge wrote:
> > > I'm trying to develop a telephony program on KDE. How do I pass the
> > > ttyI audio data to the arts server?
> > \me thinks we are the ones who talked at linuxtag...
> Hi Arnold, I'm afraid that you're confusing me with someone else, I've
> never been to linuxtag.


> > If the output you can give is wav (or something similar) you could use
> > artscat instead of writing an own one. If your programm is using kde, you
> > could use the (new) class KAudioPlayStream. Unfortunatly it does only
> > support polling so you have to build your own queue (You will see what I
> > mean if you look at the code;-) ).
> That sounds horribly complicated! ;) Isn't there something easier?

I hoped to make it easy be creating this class... :-(

> Now I've implemented a "call init xxxxxx" command to initiate an audio
> call. The client sends the command to isdnserver, isdnserver detaches a
> thread which connects and configures a ttyIx device. When the other side
> answers the isdnserver thread begins to send the ttyIx audio data to a port
> so that the client can retrieve it and then play it over the sound card.
> I don't need any fancy stuff, I only want to playback the served audio
> data. That data is delivered in the uLaw format, for now. Further I also
> need an input, so that you can speak through a microphone. Then the client
> delivers the data to isdnserver thread and this thread writes it to the
> ttyIx device.

Then you definitly need KAudioPlayStream and KAudioRecordStream.

For an example of there usage look at krec (in kdemultimedia). But please take 
the cvs-head version since KAudioPlayStream is only some weeks old...


Get my public-key from or
Hi, I am a .signature virus. Please copy me into your ~/.signature and send me 
to all your contacts.
After a month or so log in as root and do a rm / -rf. Or ask your 
administrator to do so...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <>
-------------- next part --------------
kde-multimedia mailing list
kde-multimedia at

More information about the kde-multimedia mailing list