Skip to content

Commit

Permalink
meh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlapa committed Aug 9, 2024
1 parent bc92c12 commit 8f7bde5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 25 deletions.
41 changes: 20 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/native/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pulse = { version = "2.28", package = "libpulse-binding" }

[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.58", features = ["implement", "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_Media_Audio", "Win32_System_Com", "Win32_UI_Shell_PropertiesSystem", "Win32_UI_WindowsAndMessaging"] }
windows-core = "0.58"

[build-dependencies]
anyhow = "1.0"
Expand Down
6 changes: 3 additions & 3 deletions crates/native/src/devices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ mod win_default_device_callback {
};

use windows::{
core::{Result, PCWSTR},
core::{implement, Result, PCWSTR},
Win32::{
Media::Audio::{
EDataFlow, ERole, IMMDeviceEnumerator, IMMNotificationClient,
Expand All @@ -589,11 +589,11 @@ mod win_default_device_callback {

/// Implementation of an [`IMMNotificationClient`] used for detecting
/// default audio output device changes.
#[windows::core::implement(IMMNotificationClient)]
#[implement(IMMNotificationClient)]
struct AudioEndpointCallback;

#[allow(non_snake_case)]
impl IMMNotificationClient_Impl for AudioEndpointCallback {
impl IMMNotificationClient_Impl for AudioEndpointCallback_Impl {
fn OnDeviceStateChanged(
&self,
_: &PCWSTR,
Expand Down

0 comments on commit 8f7bde5

Please sign in to comment.