|
From: Christian S. <chr...@ep...> - 2002-12-14 20:31:59
|
Es geschah am Mittwoch, 11. Dezember 2002 23:08 als Benno Senoner schrieb: > > > This check can be moved within the disk thread which accesses the > > > buffer with a much lower frequency and where it is easy to figure out > > > when the last read reached the ring buffer end position. > > > > I'm not sure what you're getting at. Do you mean that it's more likely > > that read/write access to the buffer won't interfere/overlap, because the > > audio thread reads faster than the disk buffer can fill up the space, due > > to the higher priority of the audio thread? > > no, the disk thread "always writes faster than the audio thread reads", > or in short: there will be always some data in the ring buffer as long > as the disk is not overloaded (if that happens we must lower the max # > of voices or user more powerful hardware ... it is not our fault). Oh, I expressed myself wrong. Anyway, I think I got the idea. Thanks! |