Skip to content

High + Low Level API Clarification #650

Answered by mackron
Eecornwell asked this question in Q&A
Discussion options

You must be logged in to vote

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 use ma_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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mackron
Comment options

@Eecornwell
Comment options

Answer selected by Eecornwell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants