Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash after volume change with constructed MMNotificationClient #29

Open
joxel94 opened this issue Jan 23, 2025 · 1 comment
Open

Crash after volume change with constructed MMNotificationClient #29

joxel94 opened this issue Jan 23, 2025 · 1 comment

Comments

@joxel94
Copy link

joxel94 commented Jan 23, 2025

Hello, I have the Problem, that my Programm crash with no comment if i run this two collums and change my Master Volume.

        MMDeviceEnumerator enumerator = new();
        MMNotificationClient notificationClient = new(enumerator);
@morphx666
Copy link
Owner

morphx666 commented Jan 27, 2025

I cannot reproduce the problem you describe.
I created a simple implementation using your code and I can change the master volume without any issues.

static void Main(string[] args) {
    MMDeviceEnumerator enumerator = new();
    MMNotificationClient notificationClient = new(enumerator);

    while(true) {
        var c = Console.ReadKey(true);
        if(c.Key == ConsoleKey.Escape) break;
        System.Threading.Thread.Sleep(1000);
    }
}

Since you mentioned that your app crashes without any errors, could it be that the app is simply exiting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants