Skip to content

fishsugar/WinPan

 
 

Repository files navigation

WinPan

A little Windows tool that pans audio to the horizontal location of the window, as long as there is only one window with audio.

Why?

I like it, because sometimes I do stuff while watching youtube, and it annoyed me that sound is always coming from the "front". Now I can move the Youtube window to a side, and audio will move with it.

Mainly, I wanted a solution to this - and I wanted to test coding with C# with ChatGPT 4 as my copilot. I'm not a C# person, but I made do. So here it is.

It checks for window positions every 500ms and always updates the position. It detects volume changes that it did not do itself, and tries to respect them.

How to use

Download the installer from the releases, install, then run WinPan whenever you like to move around your sound-playing-window. Terminate it with CTRL-C, and upon exiting it will restore center balance. That's it - not much more to it.

Not much to this. It looks for windows with active audio sessions. If one is found, it sets the left/right balance of the system audio relative to the horizontal position of that window on your screen(s). Supports multiple screens, but does not take into account pixel density (it assumes that screens and pixel density are roughly corresponding to your screen positions).

Limitations

Stero only (e.g. only channels 1 and 2 of your default audio interface are affected).

Maybe at some I'll make it configurable, or even build a little UI, but for now this is it.

About

A little Windows tool that pans audio to the horizontal location of the window, as long as there is only one window with audio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%