FVoiceRunnerThread Logic that runs on a background-thread and will trigger the AudioCaptureHandler repeatedly on a fixed timeinterval to ensure it will send whatever was captured in the timestep to be sent to VoxtaServer microphone input socket. More...
#include <VoiceRunnerThread.h>
Public Member Functions | |
FVoiceRunnerThread (AudioCaptureHandler *voiceComponent, float sleepTime) | |
Register values for the runner but does not start it yet. | |
void | Start () |
Create & start a new background thread, triggering 'CaptureAndSendVoiceData' on the provided voice component repeatedly, given the provided timestep. | |
virtual | ~FVoiceRunnerThread () override |
Virtual destructor. | |
virtual void | Stop () override |
Stops the runnable object. | |
uint32 | Run () override |
Runs the runnable object. | |
FVoiceRunnerThread Logic that runs on a background-thread and will trigger the AudioCaptureHandler repeatedly on a fixed timeinterval to ensure it will send whatever was captured in the timestep to be sent to VoxtaServer microphone input socket.
Note: keep in mind to double check locks when using/changing anything this touches
FVoiceRunnerThread::FVoiceRunnerThread | ( | AudioCaptureHandler * | voiceComponent, |
float | sleepTime ) |
Register values for the runner but does not start it yet.
voiceComponent | The component that will receive the 'CaptureAndSendVoiceData' signal. |
sleepTime | The time (in seconds) that should be waited between triggers. |
|
overridevirtual |
Virtual destructor.
|
override |
Runs the runnable object.
This is where all per object thread work is done. This is only called if the initialization was successful.
void FVoiceRunnerThread::Start | ( | ) |
Create & start a new background thread, triggering 'CaptureAndSendVoiceData' on the provided voice component repeatedly, given the provided timestep.
|
overridevirtual |
Stops the runnable object.
This is called if a thread is requested to terminate early.