ExistentialAudio / BlackHole

BlackHole is a modern macOS audio loopback driver that allows applications to pass audio to other applications with zero additional latency.
GNU General Public License v3.0
15.15k stars 588 forks source link

Blackhole sample rate keeps changing. #524

Closed wojciech-kulik closed 6 months ago

wojciech-kulik commented 2 years ago

Hi,

I'm using latest blackhole-2ch installed via brew (blackhole-2ch: 0.2.10) on macOS 12.1, MacBook Pro (14-inch, 2021), M1 Pro.

Unfortunately, the blackhole audio device keeps disappearing after some time. Only my script to restart audio helps:

sudo kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'`

It might be related to Xcode and/or simulator, because I'm using blackhole to redirect input/output from the simulator. Without the blackhole I'm often hearing some strange crackles caused by the simulator, that's why I installed the blackhole.

Could you check this?

devinroth commented 7 months ago

That is very odd. There is nothing different from the versions except the channels.

I can send you some other channel builds to test.

Devin On Mar 11, 2024 at 3:13 PM -0700, JChin @ Ria Health @.***>, wrote:

Devin, Over the weekend, I changed my default system audio (mic, speaker, alerts) to all non-BlackHole devices. And this morning I noticed that "BlackHole 16ch" was still working but the 2ch and 16ch ones were not (they "disappeared" and the format in Audio MIDI Setup went to 44100 Hz. I am wondering if the pkg that you have for those 2 are somehow "incorrect". Can you recreate them and send me updated ones to try? Or if you have another configuration (32ch?) that you want me to try, send it to me. At least now, I know how to "restart" BlackHole without restarting the computer or Chrome. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

jchin-ria commented 7 months ago

Once the MacBook sleeps for more than 1 hour, the BlackHole 2ch and 64ch format goes from 48KHz to 44.1KHz. I've tested this a few times and I can repeatedly see this happen.

devinroth commented 6 months ago

I still haven’t been able to reproduce. BlackHole 2ch and 64ch channel remain at 48kHz no matter how long or how often I put my computer to sleep.

Do you have any other applications that use audio running?

Devin On Mar 26, 2024 at 3:46 PM -0700, JChin @ Ria Health @.***>, wrote:

Once the MacBook sleeps for more than 1 hour, the BlackHole 2ch and 64ch format goes from 48KHz to 44.1KHz. I've tested this a few times and I can repeatedly see this happen. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

jchin-ria commented 6 months ago

LadioCast and Zoom Meetings is running. Google Chrome sometimes would run Google Meet. That is pretty much all the apps that touch audio.

devinroth commented 6 months ago

Could you do a test to try to reproduce this without any of those apps running?

Devin On Apr 3, 2024 at 12:31 PM -0700, JChin-Ria @.***>, wrote:

LadioCast and Zoom Meetings is running. Google Chrome sometimes would run Google Meet. That is pretty much all the apps that touch audio. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

jchin-ria commented 6 months ago

Will probably have to wait until the weekend.

jchin-ria commented 6 months ago

Oh I also have the Microsoft Teams Audio driver installed from the Microsoft Teams meeting app.

devinroth commented 6 months ago

I assume that solved the issue. Reopen if not.

jchin-ria commented 6 months ago

Solved? Nope. With what solution? It is still doing it (changing the bitrate from 48k to 44.1k on the 2ch and 64ch driver). It does it with nothing open, except Audio MIDI Setup (only to see the bitrate format).

devinroth commented 6 months ago

As in it's Microsoft Teams that is changing the sample rate.

I'm stumped. I can't reproduce. And nobody else has reported this issue.

devinroth commented 6 months ago

What you could do as a work around, is build a custom version of BlackHole with only 48k sample rate.

jchin-ria commented 6 months ago

It is very odd that it only happens with the 2ch and 64ch versions. The 16ch is fine.