From: Smilen Dimitrov <sd@imi.aau.dk>
To: alsa-devel@alsa-project.org
Subject: Help with dummy.c (where/how to write?)
Date: Mon, 05 Jul 2010 22:46:46 +0200 [thread overview]
Message-ID: <4C3244B6.6080409@imi.aau.dk> (raw)
Hi all,
I am trying to work on dummy.c:
http://lxr.linux.no/#linux+v2.6.32/sound/drivers/dummy.c
as an exercise, and I'd like to modify it so it behaves as an
'oscillator'; that is, when I choose 'dummy' as an input in say
Audacity, and press Record - I'd like to be able to write something to
the audio (pcm) buffer of the driver directly from the driver itself
(say a single sample), and be able to observe those samples recorded in
Audacity.
So far, by adding some debug statements, the only thing I can figure, is
that when 'Record' in Audacity is pressed, 'dummy_hrtimer_callback' is
called continuously - but I cannot tell what functions to use to modify
/ write to output buffers (not even sure what the output buffers there
are, I guess dpcm->substream->private_data).
Could anyone point to me if there is a similar example existing already,
or if not. provide me with some pointers on how to do this?
Thanks in advance,
Cheers!
next reply other threads:[~2010-07-05 20:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-05 20:46 Smilen Dimitrov [this message]
[not found] ` <4C32518B.6000505@audioscience.com>
2010-07-06 4:46 ` Help with dummy.c (where/how to write?) Smilen Dimitrov
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=4C3244B6.6080409@imi.aau.dk \
--to=sd@imi.aau.dk \
--cc=alsa-devel@alsa-project.org \
/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.