alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Help with dummy.c (where/how to write?)
@ 2010-07-05 20:46 Smilen Dimitrov
       [not found] ` <4C32518B.6000505@audioscience.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Smilen Dimitrov @ 2010-07-05 20:46 UTC (permalink / raw)
  To: alsa-devel

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-06  4:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-05 20:46 Help with dummy.c (where/how to write?) Smilen Dimitrov
     [not found] ` <4C32518B.6000505@audioscience.com>
2010-07-06  4:46   ` Smilen Dimitrov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).