diff --git a/.gitmodules b/.gitmodules index eca1aa1..bee841d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "vencord"] - path = vencord + path = integrations/discord/vencord url = ssh://git@git.newty.dev:2222/newt/muter-vencord.git diff --git a/Cargo.toml b/Cargo.toml index 38ef209..a87c14a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,4 @@ features = [ "Win32_Media_Audio_Endpoints", "Win32_System_Com", - - "Win32_UI_Input_KeyboardAndMouse", - "Win32_UI_WindowsAndMessaging", ] diff --git a/integrations/discord/vencord b/integrations/discord/vencord new file mode 160000 index 0000000..dcd7407 --- /dev/null +++ b/integrations/discord/vencord @@ -0,0 +1 @@ +Subproject commit dcd7407bc5a1b549b2784b1f61ca5c13d5c73fa7 diff --git a/readme.md b/readme.md index 05ff4d7..d552bc8 100644 --- a/readme.md +++ b/readme.md @@ -1,2 +1,9 @@ -todo: -- custom port +# muter + +A Windows service that mirrors system mutes across communication platforms. + +## Integrations + +### Discord + +- [Vencord](https://git.newty.dev/newt/muter-vencord) diff --git a/src/main.rs b/src/main.rs index 92a426f..6567be8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,16 +2,12 @@ use muter::ORDERING; use std::{ptr, sync::atomic::AtomicBool}; use warp::Filter; use windows::Win32::{ - Foundation::{BOOL, HWND, LPARAM, WPARAM}, + Foundation::{BOOL}, Media::Audio::{ eCapture, eMultimedia, Endpoints::IAudioEndpointVolume, IMMDevice, IMMDeviceEnumerator, MMDeviceEnumerator, }, System::Com::{CoCreateInstance, CoInitializeEx, CLSCTX_ALL, COINIT_MULTITHREADED}, - UI::{ - Input::KeyboardAndMouse::{MapVirtualKeyW, MAPVK_VK_TO_VSC, VIRTUAL_KEY}, - WindowsAndMessaging::{EnumWindows, GetWindowTextW, PostMessageW, WM_KEYDOWN, WM_KEYUP}, - }, }; mod ws; diff --git a/vencord b/vencord deleted file mode 160000 index 6c6e209..0000000 --- a/vencord +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6c6e2098364bc70659c57856375ba10ccb3888e7