beyond infinity wrote:
scheduling ... ]:-> ... oh, how right you are, pype.
hm ... regarding mp3 decoding ... won't it be appropriate to split the task? one process/thread fills the sound card driver with data?it picks from a kind of circular buffer whilst another thread does the decoding and fills the buffer up
actually, that's not necessary, as the DMA should do that circular-buffer trick (it did on SBlaster PRo, so i would be stunned if it didn't on modern cards :p )
Quote:
- this thread is responsible for getting mp3 data from file system... the thread to be waked up regularly should be bound to a clock, hm? More important: are actual mp3 players/decoders working in such a way?
I don't even know if a clock-driven thread is needed: whenever you have both data to decode and buffer space to put it, do the decoding job. I guess that's how most of them work ...