Skip to content

Audiokit: Record to RAM @ 96k sample-rate _while_ playing back at resampled rate? #2087

Answered by pschatzmann
z-l-p asked this question in Q&A
Discussion options

You must be logged in to vote

I think the following happens: If you play back at a lower speed (while still recording) the copier2.copy(); is taking more time then the copier1.copy() requires data so you run into an underflow.

Solution appraches:

  • Don't play back while recording
  • Put the copier1.copy(); or copier2.copy(); into a separate task, so that they don't impact each other
  • Reduce the copy size of the copier2 by the resampling factor to allign the timing with the copier1

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@z-l-p
Comment options

Comment options

You must be logged in to vote
2 replies
@z-l-p
Comment options

@pschatzmann
Comment options

Comment options

You must be logged in to vote
0 replies
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