bastibe / SoundCard

A Pure-Python Real-Time Audio Library
https://soundcard.readthedocs.io
BSD 3-Clause "New" or "Revised" License
680 stars 69 forks source link

Prevent audio volume changing when recording with include_loopback #33

Closed janleskovec closed 4 years ago

janleskovec commented 5 years ago

Is there a way to get the audio volume (as a system setting) and increase the volume when recording to adjust for the lower audio volume? This wouldn't be an issue, it is just a good idea to preserve consistency with Windows, since the volume of the recording does not change when changing the system volume.

bastibe commented 5 years ago

Not in SoundCard. SoundCard is currently not concerned with volumes at all. Come to think of it, this might be an interesting feature idea for the future, but it currently does not touch volumes anywhere.

However, audio volume is typically just a constant multiplication factor, which is easy to apply manually.

janleskovec commented 5 years ago

Ok, I'll look around if there is an easy way of checking the system audio volume level with python and adjust for it. If I find a sensible solution I'll make a pull request.

bastibe commented 5 years ago

cool!