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

Audio cracks/gaps on Ventura #824

Open
4 of 7 tasks
luismrguimaraes opened this issue Dec 24, 2024 · 12 comments
Open
4 of 7 tasks

Audio cracks/gaps on Ventura #824

luismrguimaraes opened this issue Dec 24, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@luismrguimaraes
Copy link

Please Confirm

  • I have read the FAQ and Wiki where most common issues can be resolved
  • I have searched Discussions to see if the same question has already been asked
  • This is a bug and not a question about audio routing or configuration, which should be posted in Discussions

macOS Version

macOS 13 Ventura

BlackHole Build(s) Affected

  • 2 channel
  • 16 channel
  • 64 channel
  • other/custom build

Describe the bug

I keep getting cracks/gaps while using the computer normally. I've found three specific instances where I can easily reproduce this. I use an app called Simplenote and whenever a note is saved, there is a crack/gap in the audio that is playing. Also, when using the cmd+F search feature in Firefox, I also get cracks whenever my prompt is not found. Finally, when screenshotting with cmd+shift+4 it also happens.
I'm routing the audio like this: Blackhole -> DSP software -> Headphones.

So far, I've tested playback in Reaper and the JUCE AudioPluginHost and also tested recording in Audacity. The cracks don't happen when I send the audio directly to the headphones, that is why I believe the issue is with blackhole, but I'm available to do further testing.

Reproduction Steps

  1. Set audio output device to blackhole
  2. Set up a way to record or play the audio coming from blackhole
  3. Perform any of the "triggers" described above

Expected Behavior

No cracks.

Screenshots

My aggregate device:
image

Here is what I mean by crack/gap:
crack:gap example

@luismrguimaraes luismrguimaraes added the bug Something isn't working label Dec 24, 2024
@orchetect
Copy link
Member

orchetect commented Dec 24, 2024

Are your system sound effects assigned to the aggregate device as well as system audio output? If so, does it still happen when you reassign the sound effects to a different device completely unrelated to the aggregate?

@luismrguimaraes
Copy link
Author

I'm unsure what you mean by "system sound effects".

For example, in Reaper I use this (with the aggregate device I shared above)
image
In the AudioPluginHost, this is the setting:
image
In Audacity:
image

Then, this is what each device settings look like:
image
image

I'm not using Multi-Output devices, but I do have two created the same way I have two aggregate devices with blackhole:
image

@devinroth
Copy link
Member

devinroth commented Dec 26, 2024 via email

@luismrguimaraes
Copy link
Author

I'm setting the device output to BlackHole
image

and have now tried recording with Reaper with its settings like this:
image

but am still getting the cracks/gaps
image

Should I also try deleting the aggregate devices and multi-output that include BlackHole?

@orchetect
Copy link
Member

orchetect commented Dec 26, 2024

A sample buffer ("block size") of 64 is really low and is a frequent cause of dropouts.

Try setting it to 128 or even 256 and see if the dropouts still occur. It's at least something to rule out.

@luismrguimaraes
Copy link
Author

luismrguimaraes commented Dec 26, 2024

Still happening with 256. I've tested with audio from Spotify, Youtube and VLC.

(tested with the same setup as above but a different block size)

@devinroth
Copy link
Member

devinroth commented Dec 26, 2024 via email

@luismrguimaraes
Copy link
Author

After restarting, it is not happening in Audacity. It still happens in Reaper (with the aggregate device) and in the AudioPluginHost (with each device selected separately for input and output) but is less frequent the more I increase the buffer size. 1024 samples seems to be the best value with very rare crack/gap occurrences.

I had actually not tried 512 or 1024 buffer sizes before, but I'm not sure if this should be considered a solution to the problem. I'm noticing that what I'm doing to trigger the cracks causes small CPU spikes, but because they are so small (from ~4% to ~8%) I wouldn't expect them to interfere with the audio because they are not high priority (from a user perspective) but they are likely getting priority over BlackHole.

@luismrguimaraes
Copy link
Author

Actually, if the buffer length is small enough (tested with 5ms and 10ms), it also happens in Audacity.

@devinroth
Copy link
Member

devinroth commented Dec 27, 2024 via email

@devinroth
Copy link
Member

devinroth commented Dec 27, 2024 via email

@devinroth
Copy link
Member

devinroth commented Dec 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants