High + Low Level API Clarification #650
-
In the documentation, I do not see any clear boundaries between using both the low and high level api's concurrently (besides possibly device registration). Because your audio engine includes a spatial feature, I would like to use the engine for playback and use the low level api to get microphone data. I have the audio engine (spatial audio playback) working great inside of Unreal using a sound file saved locally. What I would like to do is use the low level callback to feed the engine the sound data. Is this even possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The high and low level APIs are completely decoupled and can be used simultaneously. You can use |
Beta Was this translation helpful? Give feedback.
The high and low level APIs are completely decoupled and can be used simultaneously. You can use
ma_engine
for your playback stuff, which is part of the high level API, then usema_device
for your capture stuff (this being the low-level API). You can then save the captured audio to a buffer and then play it back through the engine. Getting the data movement from the capture side to the engine will be the most annoying part as it might require a bit of fiddling because you've got two separate threads interacting with the same buffer (the capture side and the engine side), but it's absolutely possible to do what you're after.