Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latency between AudioPlayer and NodeRecorder when pause, resume #2947

Open
nghia10216 opened this issue Dec 16, 2024 · 0 comments
Open

latency between AudioPlayer and NodeRecorder when pause, resume #2947

nghia10216 opened this issue Dec 16, 2024 · 0 comments
Labels

Comments

@nghia10216
Copy link

nghia10216 commented Dec 16, 2024

macOS Version(s) Used to Build

macOS 13 Ventura

Xcode Version(s)

Xcode 14

Description

I am using AudioKit to develop a singing application. The playerAudio is used to play the beat file, while the micRecorder is used to record my voice and save it to a file.

There are no issues when I play both nodes, playerAudio and micRecorder, simultaneously until I stop. However, problems arise if I pause and resume them around 2–3 times during the process, causing a latency between the two nodes

func record() {
  try micRecorder?.record()
  playerAudio?.play()
 }
 
 func pause() {
   playerAudio?.pause()
   micRecorder?.pause()
 }
 
 func resume() {
 playerAudio?.resume()
 micRecorder?.resume()
 }
Screenshot 2024-12-17 at 14 44 53

Crash Logs, Screenshots or Other Attachments (if applicable)

No response

@nghia10216 nghia10216 added the bug label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant