From: "Alexander E. Patrakov" <patrakov@gmail.com>
To: Martin Pietryka <martin.pietryka@streamunlimited.com>,
alsa-devel@alsa-project.org
Subject: Re: DSD: Playing silence before and after actual audio data
Date: Thu, 15 Oct 2015 18:13:54 +0500 [thread overview]
Message-ID: <561FA692.5020105@gmail.com> (raw)
In-Reply-To: <561FA3C4.8040205@streamunlimited.com>
15.10.2015 18:01, Martin Pietryka wrote:
> Hi guys,
>
> I'm trying to figure out the best way to insert ~40ms worth of silence
> pattern before and after playing back DSD data.
>
> There seems to be support inside ALSA for a DSD silence pattern, but as
> far as I have seen it's only used when an underrun might occur
> (silence_threshold, silence_size).
>
> Is there some possibility inside ALSA to basically insert silence before
> and after playback, or how hard would it be to implement something like
> this? I have looked a bit for myself and for me it seems that the
> modifications needed inside ALSA to achieve this feature are
> substantial, but of course I also might have missed something.
So you already have some sound data that you want to play, and you know
it is DSD. So, look at the silence pattern (which is
0x6969696969696969ULL), and copy an appropriate number of its
repetitions before and after your sound data. The result will be a valid
DSD stream that contains silence, your data, and then silence again.
Then play it as usual, i.e. no explicit ALSA support is needed.
--
Alexander E. Patrakov
prev parent reply other threads:[~2015-10-15 13:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-15 13:01 DSD: Playing silence before and after actual audio data Martin Pietryka
2015-10-15 13:13 ` Alexander E. Patrakov [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=561FA692.5020105@gmail.com \
--to=patrakov@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=martin.pietryka@streamunlimited.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.