spatialaudio / jackclient-python

🂻 JACK Audio Connection Kit (JACK) Client for Python :snake:
https://jackclient-python.readthedocs.io/
MIT License
132 stars 26 forks source link

Question: Volume control? #49

Closed Sjoerd82 closed 6 years ago

Sjoerd82 commented 6 years ago

This probably demonstrates my lack of understanding on the inner workings of JACK, but here it goes... Why doesn't come jackclient with any volume controls? This is my No.1 Python need for Jack ;-) Thanks for clarifying.

MaurizioB commented 6 years ago

Because that's not how jack works. Audio streams are treated as they are received from the source client, it's up to the source or the receiver to eventually process the sound stream.

If you need volume controls, use a dedicated client (such as jack_mixer) and connect it according to your needs. It is technically possible to control the gain of a stream connected to a owned jack client, but since python is not very reliable for real time audio processing, I'd advise against that.

Il mer 11 apr 2018 13:57 Sjoerd82 notifications@github.com ha scritto:

This probably demonstrates my lack of understanding on the inner workings of JACK, but here it goes... Why doesn't come jackclient with any volume controls? This is my No.1 Python need for Jack ;-) Thanks for clarifying.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/spatialaudio/jackclient-python/issues/49, or mute the thread https://github.com/notifications/unsubscribe-auth/AAf9TMsKSbECyGbqOje93wPkvBB9HlVEks5tne-9gaJpZM4TP5Cx .

Sjoerd82 commented 6 years ago

Ok, thanks for clarifying :+1:

mgeier commented 6 years ago

@Sjoerd82 In what way do you want to change the volume?

There are multiple ways to do this, but not all of them might make sense in your case.

@MaurizioB:

It is technically possible to control the gain of a stream connected to a owned jack client

Are you talking about multiplying each sample with a given factor? If not, what are you talking about?