Skip to content
Discussion options

You must be logged in to vote
  1. When you specify an explicit sample rate in the device config, that'll be the rate that's used and both the capture and playback side's will be resampled to that if necessary. Otherwise, if you leave the sample rate set to 0, it'll use the capture device's native sample rate, meaning the playback device will be resampled to match the capture side's sample rate.

  2. Yes, if resampling is required on the capture side, pInput will already have been resampled by the time it hits the callback. You can assume pOutput is the same sample rate. If the playback side requires resampling, it'll be done internally by miniaudio after the callback returns.

The data flows like this:

capture > resample …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aubrey-nureva
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