* DSD: Playing silence before and after actual audio data
@ 2015-10-15 13:01 Martin Pietryka
2015-10-15 13:13 ` Alexander E. Patrakov
0 siblings, 1 reply; 2+ messages in thread
From: Martin Pietryka @ 2015-10-15 13:01 UTC (permalink / raw)
To: alsa-devel
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.
Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: DSD: Playing silence before and after actual audio data
2015-10-15 13:01 DSD: Playing silence before and after actual audio data Martin Pietryka
@ 2015-10-15 13:13 ` Alexander E. Patrakov
0 siblings, 0 replies; 2+ messages in thread
From: Alexander E. Patrakov @ 2015-10-15 13:13 UTC (permalink / raw)
To: Martin Pietryka, alsa-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-15 13:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.