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

ALT+Tab does not creat sounds #15

Open
switchblade34 opened this issue Jun 22, 2024 · 3 comments
Open

ALT+Tab does not creat sounds #15

switchblade34 opened this issue Jun 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@switchblade34
Copy link

OS

Windows

OS Version

Win11

Describe the bug

Pressing alt and then tab to switch windows does not create kb sounds. I have tried other multi-key combinations like shift and arrows and they make sounds. Alt and tab make sounds when pressed individually.

Reproduction

Press alt and tab at the same time

Expected behavior

A sound should play as I hold down alt and hit tab to switch windows.

Additional context

kb - logtech g915 tkl
os - win11
version - 0.0.3
sound - cherrymx-brown-abs

@switchblade34 switchblade34 added the bug Something isn't working label Jun 22, 2024
@ZacharyL2
Copy link
Owner

I tested it on Windows 11 and didn't encounter the issue you mentioned. Pressing Alt and then repeatedly pressing Shift produces sound, and pressing both keys simultaneously also produces sound. Please check if any other software is affecting it.

Additionally, if you hold down both keys without releasing, it will only play the sound once.

@switchblade34
Copy link
Author

Pressing alt (makes a sound), and then pressing shift while holding down alt does make a sound on each tap. But when I try the same thing with the alt + tab. The initial alt press makes a sound but the following tab clicks don't make a sound on each click, only the first tab I hit.

This is tested on v0.0.4

@ZacharyL2
Copy link
Owner

I tried the alt + tab combination on a Windows platform and found it to be working fine, without the issue you described. If you're interested, you can debug the source code to find the cause.

Install Node.js and Rust on your computer, then use pnpm install to install dependencies and run pnpm dev to start debugging. You can print the key events here:

println!("【 evt 】==> {:?}", evt);

Then, you can add the sample length of the corresponding key sound here:

println!("【 source 】==> {:?}", source.samples.len());

@ZacharyL2 ZacharyL2 mentioned this issue Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants