But take a look at the source, it is easy to find the way how to do for each device.
Yes! I see it now. Just need chage 'default' to 'my_device_name':
snd_mixer_attach(hmixcallback, 'default');
Thanks! But this way is only half of my question
I found this:
ALSA Softvol pluginThis is exactly what I need!
Is this plugin in 'libasound.so.2' ? Is it posible create this 'Abstract PCM device' via lib?
What are you doing, why not change the audio output volume of your software instead of dealing with the mixer?
I am planning a program for devices like "Google Nest Audio", "Prestigio Smart Voice" or "LG WK-7Y" etc.
These devices are an audio speaker connected via Wi-Fi to a local network. But you cannot adjust the sound or output sound from the computer.
They also have bluetooth. When enabled, "bluetooth audio device" appears on the computer. Exactly like in my screenshots.
I want to develop a program that will allow you to get the same functionality without turning on bluetooth. Moreover, there are various problems in bluetooth mode.
Also, there can be two or three such devices on the network, and you can only connect bluetooth to one.
Now I only want to adjust the volume of each device, but in the future it would be great to also output sound from a computer via Wi-Fi to several speakers at once or with a left/right channel split into two/four speakers.
On Windows do I have to develop my own audio device driver? This will be a real problem...