All of lore.kernel.org
 help / color / mirror / Atom feed
From: Howard Abrams <abramsh@acm.org>
To: alsa-devel@lists.sourceforge.net
Subject: Re: This changes in MINIMAL FULL DUPLEX  is not enought!
Date: Sat, 30 Mar 2002 21:36:44 -0800	[thread overview]
Message-ID: <3CA6A06C.2010000@acm.org> (raw)
In-Reply-To: 5cdd1dce41e23a9a973146fe99fd5df5@www1.mail.volny.cz

Exactly.

These changes were only enough to get the example to compile,
it still doesn't work for me either.

Does ANYONE have a working example of a FULL DUPLEX alsa program?

h.

pavelni@volny.cz wrote:

> These changes in MINIMAL FULL DUPLEX AP is not enought!
> I did this changes before, but was not able to get loop
> from input to output, althought I have programed the same application
> with using OSS before. So I little experiment to solve the problem.  
>   I set length of buffer at 44100 and tryed what happend. First it
> recorded first buffer length. Then it  played the same length. And
> that is all. Then no sound recorded and no sound played. Is it
> somebody able to solve this problem to get final version of MINIMAL
> FULL DUPLEX?                                 Thanks
>                                      Pavel
> 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));
>>
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
> 
> 

      reply	other threads:[~2002-03-31  5:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-29 21:48 This changes in MINIMAL FULL DUPLEX is not enought! pavelni
2002-03-31  5:36 ` Howard Abrams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CA6A06C.2010000@acm.org \
    --to=abramsh@acm.org \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.