Re: [linux-audio-dev] full-duplex

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] full-duplex
From: Adam Williams (broadcast_AT_earthling.net)
Date: su loka   10 1999 - 23:38:37 EDT


> What are the problems involved in full-duplex operation?

The standardization of the audio API ends with full duplex. OSS Free,
ALSA, and OSS commercial have incompatible interfaces. Also you need to
handle different soundcards differently.

OSS Commercial:
Open /dev/dsp RDONLY 16 bits 2 channels for recording.
Open /dev/dsp again WRONLY 8 bits 2 channels for playback.
Playback can start and stop during recording.

OSS/Free:
Open /dev/dsp RDWR 16 bits 2 channels for record and playback.
Either start recording before playback or playback before recording. The
order is important and it changes all the time.
Playback buffers must not underrun or the recording stops.

ALSA:
Won't compile with gcc-2.95 but it's probably similar to OSS/Free.

For tinkering just focus on OSS commercial since it's the easiest to
work with and will save you time.

-- 
                               Heroine Virtual
                        freeyellow.com/members4/heroine
                      Render the impossible into reality


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : pe maalis 10 2000 - 07:27:13 EST