Zingabopp / OBSControl

A Beat Saber mod to control and monitor OBS in-game.
Other
42 stars 4 forks source link

Adds (automatic) configuration of audio sources in OBS #15

Closed Gordin closed 3 years ago

Gordin commented 3 years ago

Following up on #14 It's not ready to be merged yet, saving options to the config file and automatically setting devices when Beat Saber/a song starts is still missing, but you can already configure the OBS sources from a new Menu in the OBSControl Mod settings

Gordin commented 3 years ago

It's works good enough to take a look at now. It remembers devices even when they are unplugged when Beat Saber is launched, and it will set the devices every time a song starts

Zingabopp commented 3 years ago

Sorry about the delay, got distracted with other projects after the update X_x

Gordin commented 3 years ago

No problem, I also stopped on this for now until all the other plugins work again. I'll see if this works on current Beat Saber :)

Zingabopp commented 3 years ago

Refactor branch builds for 1.12.2, although I haven't tested it. Also, it seems CSCore doesn't play nice building in GitHub Actions, what benefits does it give over NAudio?

Gordin commented 3 years ago

Oh, I was just trying dev but didn't have much luck.... I'll try the other branch then. Well, NAudio uses CSCore internally, so I'm not sure if switching is going to help ^^ Also, the benefit was that I could get it to compile... NAudio had a couple other dependencies that I didn't want to pull in because we don't need any of them. If CSCore really doesn't work, NAudio should do the same thing. Refactoring it would be a little annoying though, all the CSCore function I'm using also exist in NAudio, but with slightly altered names >_>

Zingabopp commented 3 years ago

There might just be a problem with the project and Nuget packages, it also says Newtonsoft couldn't be found >.> At least for builds using dotnet

Zingabopp commented 3 years ago

Got it to build with dotnet by converting to an SDK project. Still some weirdness on the CI build, but it's not CSCore's fault I'm pretty sure.

Gordin commented 3 years ago

FYI, I tested the refactor branch and I got it to compile, but it doesn't work in Beat Saber. It actually makes a WebSocket connection to OBS, but there is some Exception that makes all other Plugins not load. Should be in the logs, but I didn't bother with it ysterday because I just wanted to play ^^ Maybe I'll look into it again today

Gordin commented 3 years ago

(I tested before you changed the dotnet stuff, but I guess that wouldn't have changed anything ingame as long as it compiles?)