Re: [LAU] Need to create delay or artificial latency

From: Robin Gareus <robin@email-addr-hidden>
Date: Mon Apr 04 2011 - 11:48:15 EEST

On 04/04/2011 08:17 AM, Arnold Krille wrote:
> On Monday 04 April 2011 07:55:02 Patrick Shirkey wrote:
>> So puredata can't buffer 4 hours of data? Is that a limitation of the
>> available memory or the internal format or what? Ardour can records for
>> at least 10 hours non stop.
>
> Ardour records to disk, puredata's delay buffers in memory.
>
>> Maybe ecasound is a better tool for this procedure?
>
> A "delay" of four hours can only be implemented involving the harddisk. Unless
> you have an incredible amount of ram.

48000 SPS * 4bytes/sample * 3600sec/h * 4h
= 2764800000 ~ 2.5 GBytes (per channel)

on 32bit machines you'll run out of address space even with enough RAM.

> I think a homebrewn solution is to use here. And that is my idea:
> One app/script to record to disk and start a new file every hour with the
> timestamp in the filename for debugging.
> Another app to play the files at the wanted time.
>
> That way any delay bigger then the interval of the first apps files can be
> created.

If you want _exactly_ 4 hours (and not 4 hours + 1 ms) it's easier to
count samples and compensate latency in the same app.

2c,
robin
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Mon Apr 4 12:15:04 2011

This archive was generated by hypermail 2.1.8 : Mon Apr 04 2011 - 12:15:04 EEST