Add Spotify playback functionality via SMTC
I'm also not usually a C++ developer and this is my first foray into Cyberpunk modding (why are there so many core mods doing seemingly similar things) so I'd appreciate any feedback or suggestions for improvement :)
This change adds a default Spotify Radio station that allows for playback on the actual Spotify app. Requires the Spotify app to be open, and then it plays/pauses automatically. The in-game radio station volume controls will not work, so the user must change the volume through the Spotify app. I've done some basic testing, as shown in the video below, but more thorough testing is still needed.
The above video doesn't capture the SMTC overlay, which displays when playing/pausing playback:
Visualised readme changes for convenience:
@justarandomguyintheinternet not sure how the notifications work so I'm tagging you in hopes you see this :)
I've realised this implementation requires the user to have Windows SDK installed. I assume it's an issue with the way I'm compiling the RadioExt.dll, but as mentioned I'm unfamiliar with C++ so I would appreciate some assistance when you have time. If I manage to solve the issue before then, I'll mention it here.
I believe I've fixed it. I've also changed to using the newer SendInput() function instead of the deprecated keybd_event() which would be more secure and robust.
@justarandomguyintheinternet bumping this for (likely) the last time. I've finished my playthrough of the game and don't plan on further playing/modding the game.
I'm unsure if the 2.2 update has affected this change but I imagine if the rest of the mod is fine then this should be too.