I have program that reads text (txt file), and for each line it accesses text-to-speech in mac os x. It then reads the line and delays to wait for the sentence to finish reading; otherwise, it overlaps itself and becomes noise.
THE PROBLEM: while waiting for the delay to complete, it doesn't access draw(), so it can't update the screen with any information. Its just grey.
I think I need to use a separate thread, but have no idea how to go about it. Also, I don't know if this is a problem that can be solved. The code is in multiple classes, so I won't post it for now.
Any help will be greatly appreciated as I'm suddenly against a very frustrating wall.
THE PROBLEM: while waiting for the delay to complete, it doesn't access draw(), so it can't update the screen with any information. Its just grey.
I think I need to use a separate thread, but have no idea how to go about it. Also, I don't know if this is a problem that can be solved. The code is in multiple classes, so I won't post it for now.
Any help will be greatly appreciated as I'm suddenly against a very frustrating wall.
1