On Mon, 9 Feb 2004, Dragon_at_work wrote:

> On Monday 09 February 2004 02:57, Steven M. Schultz wrote:
> >     system - when a program asks for 1 second it can be a tick or two
> >     of the clock off.
> I was afraid of that....

        UNIX 101 - sleep(1) is not guaranteed to be exactly 1 second :)

> >     dd if=/dev/zero of=1sec-silence.pcm bs=17600 count=10
> Great! This worked perfectly!

> Thanks for your keen insight and speedy help!
        
        My insight's ok and you're welcome for the help, but my arithmetic
        skills have fallen into disrepair...

        44100 * 2 * 2 = 176400 and not 176000

        Thus the command above should have been "bs=17640" and not 17600.   You
        can go to .01 sec accuracy with a block size of 1764 bytes if desired.

        Cheers,
        Steven Schultz



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to