Simulator using file - multiple threads
|Assignee:||Hans Cappelle||% Done:|
|Target version:||2.0 Multiple models|
It seems that if one use incorrect path or similar in the path edit field, one can get to a state where one can start the cyclic file reader simulator multiple times. spawning new threads every time. (perhaps that is why i use the other way to do threads...?)
At one point i had 1 thread reading the correct file, and two thread returning exceptions for missing files/paths.
I was unable to stop these threads without rebooting the phone.
I am not sure i understand how the file playback is supposed to work...
Lastly, i am unsure if it is wise to read the entire file to memory, then play it. a 10 minute recording at 30 FPS would be at least 200KB. If performance allows it, i think better solution is to keep stream open, but read byteByByte or frameByFrame. No need to spend too much time on that until it becomes a problem.