All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: "Jon Harald Øymyr" <joymyr@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: C API, usage of function _snd_pcm_file_open()
Date: Fri, 11 Feb 2011 12:00:24 +0100	[thread overview]
Message-ID: <4D5516C8.6070708@ladisch.de> (raw)
In-Reply-To: <30083061.18.1297352942734.JavaMail.jon@TT-WS-002>

Jon Harald Øymyr wrote:
> I had a look at the Spotify C API, and found that they were using the
> following code to output music from Spotify:
> snd_pcm_open(&h, dev, SND_PCM_STREAM_PLAYBACK, 0).

All applications that use ALSA PCM use this function.

> I want use this function instead: 
> int _snd_pcm_file_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode)
> 
> I'm not able to find anything in the documentation explaining what the
> two parameters snd_config_t *root and snd_config_t *conf is.

This is an internal function.

> What I'm trying to achieve is to write the stream to a file, and then
> read it from another application. But it would be even better if I
> could make the C application write to standard output.

Like arecord when you run it without parameters?


Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

      reply	other threads:[~2011-02-11 10:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <21273028.14.1297352791843.JavaMail.jon@TT-WS-002>
2011-02-10 15:49 ` C API, usage of function _snd_pcm_file_open() Jon Harald Øymyr
2011-02-11 11:00   ` Clemens Ladisch [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=4D5516C8.6070708@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=joymyr@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 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.