Open device with mode read/write
Hi all,
I'm trying to integrate the ALSA driver to my SIP user agent.
I would like to open the device in read/write open mode.
To write it's :snd_pcm_open (&audio_hdl, ALSA_DEVICE,
SND_PCM_STREAM_PLAYBACK,0);
And to read it's:snd_pcm_open (&audio_hdl, ALSA_DEVICE,
SND_PCM_STREAM_CAPTURE,0);
But how can I open with PLAYBACK and CAPTURE stream? Is it possible?
Thanks in advance.
Laurielle.
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Quoted 4 lines · Laurielle LEA
agent.
I would like to open the device in read/write open mode.
Quoted 8 lines
To write it's :
snd_pcm_open(&audio_hdl,ALSA_DEVICE,
SND_PCM_STREAM_PLAYBACK,0);
And to read it's:snd_pcm_open(&audio_hdl,ALSA_DEVICE,
SND_PCM_STREAM_CAPTURE,0);But how can I open with PLAYBACK and CAPTURE stream?
Just use two handles. A PCM handle always is for only one direction.
HTH
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl