I was wondering if there is any way to avoid system stalls when doing CDDA operations with KOS. This is, changing audio track, stopping, and so on. The DC gets stalled during a short time, and this is annoying
Thanks in advance.
Threading CDDA KOS operations
- fox68k
- DC Developer
- Posts: 49
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Tue Aug 03, 2004 11:01 am
- Has thanked: 0
- Been thanked: 0
- Contact:
-
- DC Developer
- Posts: 9951
- Joined: Sun Dec 30, 2001 9:02 am
- Has thanked: 0
- Been thanked: 1 time
Not really. If you're using a single-threaded program, that will happen, and there's no way out of it unless you want to rewrite all the low level CD access code yourself.
That said, you could (probably) have the CDDA controls in another thread. That thread simply wakes up, tries to change the CD track, and (assuming the CDDA code is written correctly) goes back to sleep until the CD is ready, leaving the CPU for your main thread.
That said, you could (probably) have the CDDA controls in another thread. That thread simply wakes up, tries to change the CD track, and (assuming the CDDA code is written correctly) goes back to sleep until the CD is ready, leaving the CPU for your main thread.