Coder Social home page Coder Social logo

setvol's People

Contributors

roblatour avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

setvol's Issues

regarding delay in commandline execution

First off many thanks for sharing your app with us!

I have noticed similar to this posting (Roobles):
https://www.push2run.com/phpbb/viewtopic.php?t=814
that after setting the volume (for example) thru:
setvol +20
or
setvol -20
or
setvol mute
or
setvol unmute

there is a delay after executing the desired state and termination
of setvol.exe

After looking through the code:
https://github.com/roblatour/setvol/blob/main/setvol/Main.vb
@line 747
' zero to one hundred
NewVolume = ConvertFromWords(CommandLine)
If ((NewVolume >= 0) AndAlso (NewVolume <= 100)) Then
Dim NewVolSingle As Single = NewVolume / 100
SetTheLevel(NewVolSingle)
MasterVolumeLevelChanged = True
GoTo AllGood
End If

The code goes to 'AllGood' @816:
AllGood:

    If gDev Is Nothing Then GoTo WrapUp

Then (pending on gdev) it goes to 'WrapUp' @909
where it, as far as I can tell goes through quite a
lot of code... before terminating.

I am by no means sure but is this necessary?
Something similar happens for muting.

Possibly terminating earlier after setvol n
or setvol mute would reduce execution time
allowing setvol.exe to be used some what more
dynamically.

Feature Request: timeout

Hi Rob,

Thanks again for the latest updates. After using SetVol3 for a couple of days, and while it's still fresh in your mind, I have an observation.

The absolute min timeout before reporting "no sound" is 1 sec, which is long enough to be noticeable to the user but is a very long time to the computer. (Also, there seems - on my i7/32Gb/SSD system at least - to be an in-built delay of ~ 1sec starting the program under Win10, and then the 1sec sampling delay on top of that does make it noticeable).

I wonder if you would consider allowing the minimum allowable test time to be smaller - would tenths of a sec (e.g. 0.1sec/0.5secs be unreasonable? Would 0.5secs be the lowest you would go? Or would there be no point allowing a test time smaller than 1sec? If this is easy, I'd be grateful - otherwise, I can live happily with it the way it is.

Thanks!

No way to set default communication device

I couldn't find a way to set the Windows default communication device
Unfortunately this is the main reason I need a way to control windows audio as my windows keeps messing up my settings when I plug and unplug devices

Exact steppt taken:

  • Go to systemcontroll > sound
  • Set device as standard (both communication and normal)
  • Use setvol makedefault device DEVICENAME to set as default
  • See changes in systemcontroll > sound

image

image

image

It is possible to implement an additional command to set the default communication device or modify the setdefault command to set both the communication and the "normal" audio device
It would complete this tool for any use case I can think of

It's still a really easy-to-use command-line tool though! Windows Audio always bugs me and I've wanted to automate it for ages. Even without this function a very helpful program!

Testet in Version 3.3 of setVol

image

Testet in Microsoft Windows 11 Pro 22H2

Feature Request - make the use of a registration character (ALT 0174) ® and/or a copyright character (ALT 0169) © in the device name optional

A user has reported that SetVol will not match on a device if it has a registration character (ALT 0174) ® in its device name and that character is not included when the device name is specified. The same will be true for a copyright character (ALT 0169) ©

For example, if your device name is: Mic (Microsoft® LifeCam Cinema(TM))

SetVol requires that the name include the ® symbol in the device name.

In other words, specifying:
Mic (Microsoft LifeCam Cinema(TM))
will not work, but specifying:
Mic (Microsoft® LifeCam Cinema(TM))
will work.

To resolve: the user noted that they could enter the ® character where required by pressing down the ALT key and while it is down type the following numbers on the keyboard 0174 and then once done release the ALT key.

Regardless, as this is not entirely intuitive I plan for a feature update to make the use of the registration character and the copyright character optional. In this way SetVol will, in a future release, recognize the device name with or without any registration and/or copyright characters specified in the device name.

In the interim you can get around the issue as described above.

Feature Request: New switch to report if audio currently playing on the system

Hi Rob, thanks for this useful util.

Any poss to add a new switch that would report back (boolean) if audio is currently playing on the system?

Windows has the "Volume Mixer" (C:\Windows\System32\SndVol.exe, or RClick on volume icon in systray) that displays a real-time volume meter... could setvol tap into that (or other Windows service) to report back whether audio is currently playing on the system?

Problem with line 855 in Main.vb

For some reason I do not fully understand, this line don't behave as expected when the following commands are issued to SetVol:

setvol 40 balance 100:0
setvol 40 balance 100:01
setvol 40 balance 100:12
setvol 40 balance 100:23
...
setvol 40 balance 100:78
setvol 40 balance 100:89
setvol 40 balance 100:90

Basically, if the last entered value is made up of two successive digits (12, 23, 34, 45, etc.) or 0 it cause an error.

This does not apply to the following lines as shown below because the successive digit are not at the end of the string:

setvol 40 balance 100:45:0:0:100:100
setvol 40 balance 34:45:56:67:78:98

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.