Jump to content
|Topic||Stats||Last action by|
|Adobe Sues Fashion Chain Over 'Pirated' Photoshop||
|Storage spaces problems||
|PS4 and Xbox One resolution / frame rate discussion||
|Windows 10 Technical Preview||
|Is Microsoft ignoring the desktop again?||
Posted 14 April 2013 - 19:49
Posted 15 April 2013 - 03:07
Posted 15 April 2013 - 13:56
Posted 15 April 2013 - 14:02
The speech commands affect Play, Pause, other playback controls as well as menu commands. I really don't know why the audio becomes unsynced so the idea of moving the SR to another thread is a shot in the dark. I have completed the code in a test bed and will move it into the app in the next few days. I will drop a note here to let everyone know how it goes.
The nice part of the SR being on another thread is that some of the processing (is a command valid, etc) is within that thread and SHOULD not affect any playback. I just return a string that informs the base app what I need to do, just as if the user had pressed a mouse button.
Have a great day.
Posted 15 April 2013 - 15:23
Did you do it delegate style? Or are you constantly checking a string for a value?
Posted 15 April 2013 - 15:29
Yes I am using a Delegate, thanks for asking. Only when acceptable conditions have been met is a string sent back to the calling thread. This is why I thought about going this route, all the work to insure that this is an acceptable command before affecting the app. I really do appreciate you asking to make sure.
Posted 15 April 2013 - 16:02
Posted 15 April 2013 - 16:32
Thanks again Firey,
Your diagram statement is exactly what is going to happen (I haven't added my new class to my app yet. I almost always create a test bed application to insure that it is working on it's own before adding it to the real application)
I still find it strange that the audio becomes unsynced.... but when I shut down the SR option, which disposes of the SR components, the issue goes away. I state this in case anyone else ever has the issue that they know that someone else has seen it.
Have a fun day.
Posted 15 April 2013 - 16:46
One thing to check, would be CPU usage. I know that in some cases High CPU usage can cause things to become un-synced. If the playback has full video decoding frames can be ready and display but the CPU can't keep up with keeping things (like the Audio) synced properly.
Posted 20 May 2013 - 15:22