Programmable control? Volume, sample rate, etc.

Moderator: flatmax

Post Reply
Jhenox
Posts: 12
Joined: Thu Jul 27, 2017 1:41 pm

Programmable control? Volume, sample rate, etc.

Post by Jhenox » Sat Aug 12, 2017 6:20 am

Hello. Is it possible to change any settings/values for the stereo sound card from within programs like volume or sample rate? I'm planning to use the card inside of something and it will be rather inaccessible and I was wondering if anything can be modified through programming. Currently i'm only adjusting the input and output volume using the analog controls. Changes in alsamixer do not seem to effect the volume, for example. Thank you.

IrwinAllen13
Posts: 13
Joined: Sun Jul 30, 2017 5:05 am

Re: Programmable control? Volume, sample rate, etc.

Post by IrwinAllen13 » Sat Aug 12, 2017 7:12 am

Hey Jhenox,

I am not certain about the sample rate, but if you are wanting to record audio and convert to a different sample rate, then you could use SoX to convert the sample rate, and change the volume level.

By the way, you should be able to use the alsamixer to adjust the volume.

Jhenox
Posts: 12
Joined: Thu Jul 27, 2017 1:41 pm

Re: Programmable control? Volume, sample rate, etc.

Post by Jhenox » Sat Aug 12, 2017 7:33 am

Ah ok. Thank you. I was playing with the master volume and I wasn't hearing a change to the volume on my speakers. I will need to play with it a bit more.

I'll also need to read more about using the alsaaudio library from Python. Thank you again.

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Programmable control? Volume, sample rate, etc.

Post by flatmax » Sat Aug 12, 2017 4:48 pm

Hi there,

The master volume controls the headphone levels. To control the RCA levels in software, you can use the ALSA softvol plugin, check here :
http://forum.audioinjector.net/viewtopi ... tvol#p1580

Yes you can problematically change the sample rate. I don't program python for audio, but you can check some C++ tutorials I have begun writing in the discussion pages.

Others on this forum do use python for audio programming, hopefully they can help you.

Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests