public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
* simple PCM helper function
@ 2006-01-06 20:10 Jaroslav Kysela
  2006-01-07 11:38 ` Conditionally compiling for 1.0.9 and later ? Dave Raggett
  2006-01-09 16:21 ` simple PCM helper function James Courtier-Dutton
  0 siblings, 2 replies; 5+ messages in thread
From: Jaroslav Kysela @ 2006-01-06 20:10 UTC (permalink / raw)
  To: ALSA development

Hi all,

	I added three functions to alsa-lib - PCM API:

/*
 * application helpers - these functions are implemented on top
 * of the basic API
 */

int snd_pcm_recover(snd_pcm_t *pcm, int err, int silent);
int snd_pcm_set_params(snd_pcm_t *pcm,
                       snd_pcm_format_t format,
                       snd_pcm_access_t access,
                       unsigned int channels,
                       unsigned int rate,
                       int soft_resample,
                       unsigned int latency);
int snd_pcm_get_params(snd_pcm_t *pcm,
                       snd_pcm_uframes_t *buffer_size,
                       snd_pcm_uframes_t *period_size);

	These functions are intended for "lazy" people who are doing just 
simple command line players or recorders and don't want to bother with
the ALSA details. The implementation comes from strong attitude against
alsa-lib on LKML by some people.
	Please, look to them and tell me, if I missed something useable.
The really "minimalistic" example using these functions is in 
alsa-lib/test/pcm_min.c (compile the code typing 'make pcm_min' in the 
test directory).

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

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

end of thread, other threads:[~2006-01-14 21:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-06 20:10 simple PCM helper function Jaroslav Kysela
2006-01-07 11:38 ` Conditionally compiling for 1.0.9 and later ? Dave Raggett
2006-01-09 16:21 ` simple PCM helper function James Courtier-Dutton
2006-01-10 12:26   ` Jaroslav Kysela
2006-01-14 21:48     ` Giuliano Pochini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox