5#include "CoreMinimal.h"
6#include "HAL/ThreadSafeBool.h"
8#define VOICE_RUNNER_ERROR_COMPONENT_NULL 255
9#define VOICE_RUNNER_ERROR_DEFAULT 254
10#define VOICE_RUNNER_SUCCESS_SEND 1
24#pragma region public API
41#pragma region FRunnable overrides
52 virtual void Stop()
override;
62 uint32
Run()
override;
68 FRunnableThread* m_thread;
71 FThreadSafeBool m_isStopped;
AudioCaptureHandler.
Definition AudioCaptureHandler.h:19
FVoiceRunnerThread(AudioCaptureHandler *voiceComponent, float sleepTime)
Register values for the runner but does not start it yet.
Definition VoiceRunnerThread.cpp:9
uint32 Run() override
Runs the runnable object.
Definition VoiceRunnerThread.cpp:27
virtual ~FVoiceRunnerThread() override
Virtual destructor.
Definition VoiceRunnerThread.cpp:17
void Start()
Create & start a new background thread, triggering 'CaptureAndSendVoiceData' on the provided voice co...
Definition VoiceRunnerThread.cpp:57
virtual void Stop() override
Stops the runnable object.
Definition VoiceRunnerThread.cpp:73