Mark Rages wrote:
> On Thu, Mar 28, 2002 at 09:05:31PM -0800, Howard Abrams wrote:
>
>>Thanks Mark. I'll take a look at jack, but in the near-term, I
>>copied a sample from a link off your page. It must have been
>>from a earlier rev of the api, but it only required very minimal
>>changes to compile.
>>
>>The program I used was "A Minimal Full-Duplex Program", off the
>>page: http://www.op.net/~pbd/alsa-audio.html#duplexex
>>
>
> Can you tell us what changes were required? It will help improve the
> documentation.
Sure, a diff is attached.
> Sorry, I don't have the expertise (or the appropriate soundcard)
> to help with your specific problem.
>
Is Takashi Iwai on this list? He's credited in the source for the
driver. Anyone else have one of these cards?
h.
12c10
< if ((snd_pcm_open ( &playback_handle, argv[1], SND_PCM_STREAM_PLAYBACK, 0))
< 0) {
---
> if ((playback_handle = snd_pcm_open (argv[1], SND_PCM_STREAM_PLAYBACK, 0))
>< 0) {
17c15
< if ((snd_pcm_open ( &capture_handle, argv[1], SND_PCM_STREAM_CAPTURE, 0)) <
0) {
---
> if ((capture_handle = snd_pcm_open (argv[1], SND_PCM_STREAM_CAPTURE, 0)) <
>0) {
27c25
< snd_pcm_hw_params_set_rate_near (playback_handle, hw_params, 44100, 0);
---
> snd_pcm_hw_params_set_rate_near (playback_handle, hw_params, 44100);
35c33
< snd_pcm_hw_params_set_rate_near (capture_handle, hw_params, 44100, 0);
---
> snd_pcm_hw_params_set_rate_near (capture_handle, hw_params, 44100);
45,46c43,44
< snd_pcm_writei (playback_handle, pbuf, sizeof (pbuf));
< snd_pcm_readi (capture_handle, cbuf, sizeof (cbuf));
---
> snd_pcm_write (playback_handle, pbuf, sizeof (pbuf));
> snd_pcm_read (capture_handle, cbuf, sizeof (cbuf));