projectM-visualizer / frontend-sdl-cpp

Standalone application based on libSDL that turns your desktop audio into awesome visuals. Available on most platforms supported by both libprojectM and libSDL.
GNU General Public License v3.0
66 stars 35 forks source link

[Work in progress] [macOS] Syphon output #63

Closed s6joui closed 10 months ago

s6joui commented 1 year ago

Added Syphon framework integration to share video output with other macOS applications such as Resolume that support Syphon.

Syphon output can be enabled via the textureSharingEnabled command line option. Example:

projectMSDL --textureSharingEnabled 1

This is a work in progress. Currently facing the following issues:

kblaschke commented 1 year ago

If there is a way to not check in all the dependencies into the current repo, but find and link them via CMake' find_package(), that'd be a great improvement. IMO, 3rd party libs should stay at their original repos, otherwise the codebase will at some point become a maintenance hell (plus, it's very hard for Linux maintainers to use the distro packages in such a case).

s6joui commented 1 year ago

If there is a way to not check in all the dependencies into the current repo, but find and link them via CMake' find_package(), that'd be a great improvement. IMO, 3rd party libs should stay at their original repos, otherwise the codebase will at some point become a maintenance hell (plus, it's very hard for Linux maintainers to use the distro packages in such a case).

Agreed! I'll try to figure out how to do it.

kblaschke commented 1 year ago

@s6joui still working on this? If not, I'd close the PR. If you've got anything that works and doesn't affect other platforms where Syphon isn't available, you can just open a new PR.

kblaschke commented 10 months ago

No activity or replies for several months now. I'll close the PR due to inactivity.

If you continue working on it and have something you want to merge, please feel free to open a new PR. In the 4.2 release of libprojectM, there will be new API calls to enable render-to-texture instead of always drawing to the default framebuffer, which would immensely help with this.

I'll also create two feature tickets in the bug tracker, both for Syphon and Spout, to keep this in our minds and track any progress plus allowing for discussions.