kyleneideck / BackgroundMusic

Background Music, a macOS audio utility: automatically pause your music, set individual apps' volumes and record system audio.
GNU General Public License v2.0
15.85k stars 669 forks source link

BUG: Failed to set Tascam UH-7000 as output device #355

Open syntheticfox opened 4 years ago

syntheticfox commented 4 years ago

Hello,

I have an external USB Audio interface called the Tascam UH-7000. Audio works correctly when I directly select the audio interface as the sound output through Mac menus. However, when I try to set the audio interface within Background Music app I get the following message:

"Failed to set UH-7000: Output (UH-7000 (Core Audio)) as the output device. This is probably a bug. Feel free to report it."

This effectively makes Background Music not usable for my computer and audio. How can I get around this issue so I can select the audio interface as my output and use Background Music as expected?

kyleneideck commented 4 years ago

Thanks for the report. Does it log anything in Console.app when you try to change the output device? You should be able to find the logs by searching for "Background Music".

If you're using a recent snapshot build, you could try getting debug logs.

Do you get the same error if you set your Tascam UH-7000 as your default device in macOS before you open Background Music or is it only when you change the Background Music output device from a different device to the Tascam UH-7000?

bencodesall commented 3 years ago

I think I've identified a potential (not 100%) issue with supporting 3rd party / multi-channel audio interfaces. Your Audio Device (in Audio MIDI Setup) only shows 32-bit float format (It's not changeable) ... many audio interfaces only go up to 24 bit INTEGER format. I've witnessed this creating issues with RingBuffer implementations that are locked to a specific bit depth for recording and playback in the past, and I wonder if that's not something to look into.

Sorry, ahead of time, as I didn't actually get a chance to look into the source code (so this may not apply). I was hopeful that this app would be a savior to my mac audio woes, but alas it is not because it makes my interface unusable. Hope you get this sorted.

Interested to see what you find. Blessings and good luck!

benwiley4000 commented 2 years ago

I have a similar issue with my PreSonus Studio 24c audio interface. It's a two-channel input interface.

When I boot BGM (output device is already set to Studio 24c), I see this message and my output device changes from Studio 24c to Background Music, with silence:

Screen Shot 2021-11-19 at 1 57 09 PM

I can go into my sound settings and change output back to Studio 24c, but more importantly, BGM seems completely disabled afterward:

Screen Shot 2021-11-19 at 1 57 37 PM

I'm running Background Music v0.3.2 on macOS 10.14 Mojave (upgrading to a more recent macOS version isn't an option for me, but it seems like Mojave is supported?).

EDIT: This problem is gone with the v0.4 snapshot. When will this version be officially released ?

benwiley4000 commented 2 years ago

Not sure if it helps but here are some screenshots of the Audio Midi Setup screens for Studio 24c and Background Music input/output:

Screen Shot 2021-11-19 at 2 06 59 PM

Screen Shot 2021-11-19 at 2 07 15 PM

Screen Shot 2021-11-19 at 2 06 19 PM

Screen Shot 2021-11-19 at 2 06 05 PM