Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.co.uk>
To: Michel Benoit <murpme@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: alsa driver api
Date: Thu, 03 May 2007 05:07:02 +0100	[thread overview]
Message-ID: <46395FE6.7080803@superbug.co.uk> (raw)
In-Reply-To: <c88e466f0705021040p1166b247t864288e3355dc25c@mail.gmail.com>

Michel Benoit wrote:
> Hi
> 
> Does anyone have some code examples that show how to send pcm samples
> directly to an alsa driver.  I'm (still) having trouble building/using
> alsa-lib and I want to make sure that my driver works correctly. If I
> understand correctly it is possible to send sound samples using the
> alsa driver api only (no alsa-lib).
> 
> All I want to do for now is send a fixed sine wave to the driver. I
> saw some code snippets that seemed to do just that in a recent email
> on this list but it would help a lot if I could have a look at the
> complete application.
> 
> Thanks,
> 
> Michel

There is an alsa tool already available to do the task.
It is called "speaker-test"
speaker-test -c2 -Dplug:front -twav    (voices)
speaker-test -c2 -Dplug:front -tsine   (sine wave)
speaker-test -c2 -Dplug:front -tpink   (pink noise)

You can then use any device name you wish to test.

James

  reply	other threads:[~2007-05-03  4:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-02 17:40 alsa driver api Michel Benoit
2007-05-03  4:07 ` James Courtier-Dutton [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-05-02 17:56 Ciaccia

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=46395FE6.7080803@superbug.co.uk \
    --to=james@superbug.co.uk \
    --cc=alsa-devel@alsa-project.org \
    --cc=murpme@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox