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 doesn't work #76

Closed
DCRalph opened this issue Mar 20, 2021 · 21 comments
Closed

Audio doesn't work #76

DCRalph opened this issue Mar 20, 2021 · 21 comments
Labels
good first issue Good for newcomers

Comments

@DCRalph
Copy link

DCRalph commented Mar 20, 2021

I dont know whats happning but it isnt working. I am running bigsur and followed https://ledfx.readthedocs.io/en/master/directing_audio.html and still dident work

Settings:

{
  "audioInputs": {
    "isLoading": false,
    "options": [
      {
        "index": "1",
        "value": "NDI Audio"
      },
      {
        "index": "2",
        "value": "BlackHole 2ch"
      },
      {
        "index": "3",
        "value": "MacBook Pro Microphone"
      },
      {
        "index": "5",
        "value": "Soundflower (2ch)"
      },
      {
        "index": "6",
        "value": "Soundflower (64ch)"
      }
    ],
    "isSaving": false,
    "value": "MacBook Pro Microphone",
    "error": ""
  },
  "isLoading": false,
  "devMode": false,
  "port": 8888,
  "host": "0.0.0.0",
  "devices": [
    {
      "config": {
        "center_offset": 0,
        "channel_count": 360,
        "channel_offset": 0,
        "force_refresh": false,
        "icon_name": "SettingsInputComponent",
        "ip_address": "192.168.2.49",
        "max_brightness": 1,
        "name": "strip",
        "pixel_count": 120,
        "preview_only": false,
        "refresh_rate": 60,
        "type": "e131",
        "universe": 1,
        "universe_end": 1,
        "universe_size": 510
      },
      "id": "strip",
      "type": "e131",
      "effect": {
        "config": {
          "active": true,
          "config": {
            "active": true,
            "background_color": "black",
            "blur": 3,
            "brightness": 1,
            "flip": false,
            "gradient_name": "Rainbow",
            "gradient_repeat": 1,
            "gradient_roll": 0,
            "mirror": false
          },
          "isProcessing": false,
          "name": "Wavelength",
          "type": "wavelength(Reactive)",
          "gradient_name": "Rainbow",
          "background_color": "black",
          "mirror": false,
          "gradient_repeat": 1,
          "brightness": 1,
          "blur": 3,
          "gradient_roll": 0,
          "flip": false
        },
        "name": "Wavelength",
        "type": "wavelength(Reactive)",
        "active": true
      },
      "key": "strip",
      "name": "strip"
    }
  ],
  "error": "",
  "version": "0.10.4"
}

userAgent:

Mozilla/5.0 (Macintosh- Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36

Logs:

[
  "Websocket subscribing to event device_update with filter {'device_id': 'strip'}",
  "Effect Wavelength config updated to {'blur': 3.0, 'brightness': 1.0, 'flip': False, 'gradient_name': 'Rainbow', 'gradient_roll': 0, 'mirror': False, 'background_color': 'black', 'gradient_repeat': 1}.",
  "Activating AudioReactiveEffect.",
  "Effect Wavelength activated.",
  "Saving configuration file to /Users/williamgiles/.ledfx",
  "Deactivating AudioReactiveEffect.",
  "Effect Wavelength deactivated.",
  "Connection closed by client.",
  "Stopping sender",
  "Closed connection",
  "Audio source closed.",
  "Audio Input Devices:",
  "  [1] NDI Audio",
  "  [2] BlackHole 2ch",
  "  [3] MacBook Pro Microphone",
  "  [5] Soundflower (2ch)",
  "  [6] Soundflower (64ch)",
  "Unable to open Audio Device - please retry.",
  "Audio source opened."
]
@shauneccles
Copy link
Member

This feels like a portaudio problem on big sur - you might give brew a crack.

Details

I know @THATDONFC uses OSX, he might be able to shed some more light.

Good bug report, thank you 👍

@shauneccles shauneccles added the good first issue Good for newcomers label Mar 20, 2021
@THATDONFC THATDONFC changed the title Audio dosent work Audio doesn't work Mar 20, 2021
@THATDONFC
Copy link
Contributor

@DCRalph Did you follow these instructions exactly?

It's been a while since I've used blackhole, but I think you need to set blackhole as your output (and possibly input) in sound settings for LedFx to work.

@DCRalph
Copy link
Author

DCRalph commented Mar 20, 2021

Yes and set it as an input so that it was selectable in the input dropdown.

@THATDONFC
Copy link
Contributor

THATDONFC commented Mar 21, 2021

@THATDONFC
Copy link
Contributor

I can't replicate this issue. I reinstalled blackhole-2ch and followed the instructions for blackhole in the LedFx documentation.

Everything setup as shown in the images below and LedFx works exactly as it should. LedFx must be restarted if any changes are made to the system audio before they will take effect.

Screen Shot 2021-03-21 at 6 40 00 AM
Screen Shot 2021-03-21 at 6 40 27 AM
Screen Shot 2021-03-21 at 6 40 45 AM
Screen Shot 2021-03-21 at 6 41 09 AM

@DCRalph
Copy link
Author

DCRalph commented Mar 21, 2021

Screen Shot 2021-03-22 at 10 53 36 AM

What Mac OS are you running

Screen Shot 2021-03-22 at 10 50 46 AM

![Uploading Screen Shot 2021-03-22 at 10.51.03 AM.png…]()

Screen Shot 2021-03-22 at 10 51 11 AM

@THATDONFC
Copy link
Contributor

THATDONFC commented Mar 22, 2021 via email

@DCRalph
Copy link
Author

DCRalph commented Mar 22, 2021

I don't this that is why it is not working because it doesn't even work when I set the audio input to my built in mic. LedFX cant get any audio in. I tried putting default output at the top and still didn't work

@THATDONFC
Copy link
Contributor

Please delete your config.json and reinstall LedFx.

python3 -m pip uninstall ledfx
python3 -m pip install --no-cache-dir ledfx==0.10.4

@Dnncha
Copy link

Dnncha commented Mar 26, 2021

I'm running into this one too, tried those commands from @THATDONFC but no luck. Signal appears to be running through Blackhole, but not making it to LedFx from some reason.
image

Has it got anything to do with this address in use error, or is that handled?

image

@THATDONFC
Copy link
Contributor

THATDONFC commented Mar 26, 2021 via email

@Dnncha
Copy link

Dnncha commented Mar 26, 2021

Yeah I had that one done.

@DCRalph
Copy link
Author

DCRalph commented Mar 28, 2021

Sorry for the inactivity. I have just tried the uninstall and reinstall commands @THATDONFC said early and still dosent work.

@THATDONFC
Copy link
Contributor

Can you both test BlackHole with another program that accepts selectable input like Discord? Open Discord, open the User Settings and select Voice & Video, set your input device to BlackHole 2ch in discord and System Settings. Set your output to ONLY BlackHole 2ch in System Settings. Play some music and click Let's Check in Discord.

I just noticed that Discord only picks up the sound when BlackHole 2ch is selected. If I select the Multi-Out device, Discord doesn't get any sound. This might be a bug in BlackHole or a limitation of BlackHole 2ch. Can you guys also try BlackHole 16ch?

@krzkowalczyk
Copy link

I have the same issue on macOS Catalina 10.15.6. I don't think this is an issue with BlackHole, as ledfx doesn't pick the buildin mic audio input as well.

@tihoangyeudau
Copy link
Contributor

@shauneccles
Copy link
Member

I think this is a portaudio issue to be honest with you; if the built in microphone is working and blackhole is working for other devices, its' about the only thing I can think of.

Portaudio have an RC out of their next version, I'm hopeful that it will help.

@krzkowalczyk
Copy link

I think this is a portaudio issue to be honest with you; if the built in microphone is working and blackhole is working for other devices, its' about the only thing I can think of.

Portaudio have an RC out of their next version, I'm hopeful that it will help.

But at least for me it was not working even on build in microphone.
Therefore I've fixed it and now it works. As I suspected the problem was with permissions to access the microphone (as apple is very restrictive with that). In my case as I was launching the ledfx using the iterm terminal I was necessary to give iterm permissions to access the microphone.

image

Now it works with microphone and blackhole !

@THATDONFC
Copy link
Contributor

But at least for me it was not working even on build in microphone.
Therefore I've fixed it and now it works. As I suspected the problem was with permissions to access the microphone (as apple is very restrictive with that). In my case as I was launching the ledfx using the iterm terminal I was necessary to give iterm permissions to access the microphone.

Now it works with microphone and blackhole !

I don't know why this didn't come to mind for me. Probably because it's been so long since I've needed to grant any permissions. That would 100% prevent LedFx from accessing any devices through the terminal and/or browser.

@DCRalph @Dnncha Please check your permissions as stated here

@shauneccles
Copy link
Member

I'm going to close this as we've resolved the underlying cause.

I'll add this to the Docs.

@DCRalph
Copy link
Author

DCRalph commented Apr 7, 2021

I dont have terminal in microphone and even downloaded iterm2 and still wasn't there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

6 participants