What is Real-Time?
Posted Dec 29, 2004 3:54 UTC (Wed) by
jwb (guest, #15467)
In reply to:
What is Real-Time? by jd
Parent article:
Where Is Real-Time Linux? (TechNewsWorld)
I liked your example, right up until you started talking about jitter. There's a perfectly good way to keep everything phase-aligned, because the ADC latches the sample into a buffer at exactly the right moment. Then the OS simply needs to come around and read the samples out of the buffer, and it needs to read all 10 samples before the next sample is latched. Even more likely, the samples are being transferred via DMA into a ring buffer in main memory, meaning the OS needs neither polling nor interrupts to work properly. The audio application can consume the samples as aggressively (e.g. jack, asio) or as lazily (e.g. record to file) as it likes.
Which just goes to show there are perfectly good hardware solutions to realtime problems. Anyone relying on an RTOS to achieve low-jitter sampling is going to be sorely disappointed, and frankly anyone who implemented your fake dithering scheme in a real recording system should be ashamed.
(
Log in to post comments)