9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] read/write offset hack
@ 2008-05-30 15:15 erik quanstrom
  2008-05-30 15:27 ` roger peppe
  2008-05-30 16:09 ` Russ Cox
  0 siblings, 2 replies; 14+ messages in thread
From: erik quanstrom @ 2008-05-30 15:15 UTC (permalink / raw)
  To: 9fans

> P. P. S.  The usb audio use of offsets is not as bad as it first sounds.
> The device consumes written data at a constant rate (say, 176,400
> bytes per second for CD audio).  You can make a noise ten seconds
> from now by writing 1.7MB bytes of zeros (silence) followed by your
> sound data.  Being able to seek ahead 1.7MB instead just avoids the
> need to write the zeros.  The file offset is still bytes, not nanoseconds.
>

why not put the timing information inband?  this would allow the timed
sound to be saved to a file also without 1.7mb of zeros.

- erik



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-06-01 10:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-30 15:15 [9fans] read/write offset hack erik quanstrom
2008-05-30 15:27 ` roger peppe
2008-05-30 16:09 ` Russ Cox
2008-05-30 19:11   ` [9fans] /dev/audio format (was: read/write offset hack) a
2008-05-30 20:02     ` geoff
2008-05-30 20:17       ` Charles Forsyth
2008-05-30 22:31       ` erik quanstrom
2008-05-30 22:38         ` andrey mirtchovski
2008-05-30 22:58           ` Skip Tavakkolian
2008-05-31  0:53       ` Bruce Ellis
2008-05-31  8:07         ` Charles Forsyth
2008-05-31  8:05           ` Bruce Ellis
2008-06-01 10:02         ` Enrico Weigelt
2008-06-01 10:10           ` Bruce Ellis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).