Skip to contentSkip to conversation

Full Duplex (Play + Record simultaniously)

DISCUSSION Georg Wendt 4 participants 5 messages Mar 3, 1999 – Mar 4, 1999 Sound

lore
Share & tools
lore
#0 lore raw

Hello,

I wanna use a record-programm running in one shell and playback audio started on another shell.
However, whenever one of the programs has started, it blocks the dsp-device and the other application can't work.
Is there a way to avoid this effect?
Since I work on the sourcecode of the player and the recorder, I don't care if there's a solution where I need to set some sort Systemparameters...

Another way: What about using two soundcards, one for playback, the other for recording? Since I can decide the sound-device used by the applications, this should work, shouldn't it?

Thanx a lot for any answer!!! :-)

Ciao Georg

#1 lore raw
Quoted 3 lines · Georg Wendt

Another way: What about using two soundcards, one for playback, the other for recording? Since I can decide the sound-device used by the applications, this should work, shouldn't it?

Yes, it works. I did it with an sb16 and a spea media fx.

--
Raoul Boenisch, Winkhauser Talweg 165, 45473 Muelheim an der Ruhr, Germany
homepage: http://www.raoul.home.pages.de/ home phone: +49 208 764257

#2 lore raw
In reply to Georg Wendt
Quoted 4 lines · Georg Wendt

I wanna use a record-programm running in one shell and playback audio started on another shell.
However, whenever one of the programs has started, it blocks the dsp-device and the other application can't work.

Depends on the soundcard and the driver. With some drivers this works.

Quoted 1 line

Is there a way to avoid this effect?

Yep - don't access the audio device directly, use an intermediate program. EsounD might provide what you need.

Quoted 3 lines

Another way: What about using two soundcards, one for playback, the other for recording? Since I can decide the sound-device used by the applications, this should work, shouldn't it?

In this case you get plesiochronous sampling rates. If that is a problem depends on the application.

Tom

#3 lore raw
In reply to Georg Wendt
Quoted 8 lines · Thomas Sailer
Quoted 4 lines · Georg Wendt

I wanna use a record-programm running in one shell and playback audio started on another shell.
However, whenever one of the programs has started, it blocks the dsp-device and the other application can't work.

Quoted 6 lines

Depends on the soundcard and the driver. With some drivers this works.

Quoted 1 line

Is there a way to avoid this effect?

Yep - don't access the audio device directly, use an intermediate program. EsounD might provide what you need.

The OSS drivers allow full duplex operation on some sound cards. My SB AWE 32 works great for it. EsounD will use it if it's available, but I'm not sure how robust the error handling is should the full duplex operation fail (haven't had the problem myself =).

Quoted 6 lines
Quoted 3 lines

Another way: What about using two soundcards, one for playback, the other for recording? Since I can decide the sound-device used by the applications, this should work, shouldn't it?

In this case you get plesiochronous sampling rates. If that is a problem depends on the application.

plesiochronous? i assumes that translates roughly into "skewed data"?

Quoted 1 line

Tom

-- ebm

+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric B. Mitchell         mailto:[email protected] |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
#4 lore raw
In reply to Georg Wendt
Quoted 5 lines · Eric B. Mitchell

The OSS drivers allow full duplex operation on some sound cards. My SB AWE 32 works great for it. EsounD will use it if it's available, but I'm not sure how robust the error handling is should the full duplex operation fail (haven't had the problem myself =).

You've got the source for EsounD, you can improve the situtation 8-)

Quoted 1 line

plesiochronous? i assumes that translates roughly into "skewed data"?

The sampling rates are slightly different, thus sliding about each other. If you don't do any corrective measures, you'll either get buffer overruns or underruns.

Tom