Skip to content

How to "peek" the frames at a specific graph node during playback? #674

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

You must be logged in to vote

Your understanding is correct for the node thing. Imagine the most simple of setups - you have 1 sound and that is, by default, connected to the endpoint:

Sound --> Endpoint

You can plug in a node in the middle to do your processing:

Sound --> Custom Processing Node --> Endpoint

When you implement a custom node, you implement a callback to do your processing. That callback takes a buffer to both the input data and output data. You would take the input data and do something with it, and then simply copy the data over to the output buffer. But even better, when you set up your custom node, you can set the MA_NODE_FLAG_PASSTHROUGH flag in your node's vtable which tells miniaudio the input …

Replies: 1 comment 2 replies

Comment options

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

@mackron
Comment options

Answer selected by AdrianTesla
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