obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Application Capture loses audio when application reopens on MacOS

Open mxrlkn opened this issue 1 year ago • 7 comments

Operating System Info

macOS 13

Other OS

No response

OBS Studio Version

29.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/wRvHr3e6lPL9fJyn

OBS Studio Crash Log URL

No response

Expected Behavior

When I reopen the selected application in Application Capture, I expect there to be audio from the application as there is when i first select it. Tested with Leauge of Legends.

Current Behavior

No audio from the application is coming into the audio mixer, but audio is coming through just fine via my audio interface. If I toggle show cursor on/off audio works again. I have to do this every time I open the application.

Steps to Reproduce

  1. Set League Of Legends to Application Capture
  2. Reopen a game
  3. No audio
  4. toggle show cursor on/off while in game to fix it.

Anything else we should know?

No response

mxrlkn avatar Jun 24 '23 17:06 mxrlkn

Can confirm on macOS 14 with various apps. At first glance this looks like it could be a macOS issue. Will investigate further and report to Apple if needed.

gxalpha avatar Jun 24 '23 18:06 gxalpha

If I restart OBS while the application is open, audio comes back as well.

mxrlkn avatar Jun 24 '23 19:06 mxrlkn

Submitted to Apple as FB12607563.

gxalpha avatar Jul 14 '23 11:07 gxalpha

This is a confirmed bug but is also nothing we can fix on our end: The way macOS seems to tap into the audio of an application is inherently tied to that instance of an application (and not the application itself as identified by a bundle identifier). As such when the application is reopened, it obviously presents itself as an entirely different instance to the OS and the capture cannot be restored.

Note that this only applies to the audio portion of SCK as the capture of visible content is handled differently behind the scenes.

PatTheMav avatar Aug 03 '23 16:08 PatTheMav

Is there an easier way for me to refresh the source manually like I do by toggling cursor on/off? Or is there a special hotkey or something to refresh OBS (like restarting it but without restarting)?

mxrlkn avatar Aug 09 '23 00:08 mxrlkn

Fwiw I have the same problem on Windows 10, is there a bug for this or should I file one? (e.g. I have to toggle some aspect of Application Audio Capture and back again like any of the Match Title) entries and it picks up audio again.

sadsfae avatar Apr 15 '24 11:04 sadsfae

Fwiw I have the same problem on Windows 10, is there a bug for this or should I file one? (e.g. I have to toggle some aspect of Application Audio Capture and back again like any of the Match Title) entries and it picks up audio again.

Windows and macOS have completely different audio capture implementations. I would check the existing Issues and Pull Requests before filing a new Issue though.

RytoEX avatar Apr 15 '24 17:04 RytoEX