From: Clemens Ladisch <clemens@ladisch.de>
To: Ankhit Vivekananda <ankhit.vivekananda@biscotti.com>,
alsa-devel@alsa-project.org
Subject: Re: Use of snd_pcm_format_set_silence
Date: Wed, 20 Jan 2016 22:56:50 +0100 [thread overview]
Message-ID: <56A002A2.5070200@ladisch.de> (raw)
In-Reply-To: <CACaQK7C04jg3nP-7ijntq+ADEdO41+Ab1VpRDS1vwFXWAPPTHg@mail.gmail.com>
Ankhit Vivekananda wrote:
> I have an application where in I need to silence the first few samples of
> the buffer that is read from snd_pcm_readi(). In order to do this, I call
> the snd_pcm_format_set_silence() providing the same buffer that the
> snd_pcm_readi() reads to.
>
> 1) By doing this, is there going to be a timing delay due to the use of
> snd_pcm_format_set_silence()?
That function just modifies memory; it does not affect any PCM device.
> 2) Is snd_pcm_format_set_silence() the correct function to achieve this
> goal or are there better methods?
You already know your sample format; memset(0) might be simpler.
Regards,
Clemens
next prev parent reply other threads:[~2016-01-20 21:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-20 21:18 Use of snd_pcm_format_set_silence Ankhit Vivekananda
2016-01-20 21:56 ` Clemens Ladisch [this message]
2016-01-20 22:17 ` Ankhit Vivekananda
2016-01-21 7:43 ` Clemens Ladisch
2016-01-21 16:29 ` Ankhit Vivekananda
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=56A002A2.5070200@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=ankhit.vivekananda@biscotti.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