RuntimeAudioImporter
RuntimeAudioImporter copied to clipboard
AudioCaptureCore Bug from 5.3 in Windows Only
Since 5.3 the Epic Team had added the Windows Audio Session API. But they forgot this 3 functions' return value [StartStream StopStream CloseStream] from the FWasapiStreamManager class in WasapiStreamManager.h. Cause the StartStream, CloseStream and StopStream in FAudioCapture class couldn't get the return value.
WasapiStreamManager.h
/** Starts the audio capture which triggers periodic callbacks with new audio data. */
void StartStream();
/** Indicates if the stream was successfully started and is capturing data. */
bool IsCapturing() const;
/** Stops the capture thread which, in turn, completes the runnable and stops the input stream. */
void StopStream();
/** Brute force stops the capture thread. */
void AbortStream();
It seems remain in the lastest version.. https://github.com/EpicGames/UnrealEngine/blob/c830445187784f1269f43b56f095493a27d5a636/Engine/Source/Runtime/AudioCaptureImplementations/Windows/AudioCaputureWasapi/Private/WasapiInputStream.h#L55
Other platform seem be fine. Be able to use for other platform, just modify the Prefix.