Hopefully, this is something simple I am doing wrong...
My setup is a raspberry pi running Bullseye, with the latest libraries from here.
My playback hardware is a Pimoroni PirateAudio DAC with a 3W amp and push-fit connections for speakers.
My config.txt disables on-board audio (dtparam=audio=off) and loads the relevant driver for the DAC (dtoverlay=hifiberry-dac) and turns on the amp. (gpio=25=op,dh).
aplay -l shows me the single card [sndrpihifiberry] as expected.
I can play back MP3 files by using BASS_StreamCreateFile(....), BASS_ChannelPlay(...) as expected, and if I set a sync point, it works as well. I get playback, nice and clear, no issues.
HOWEVER, as with many low-cost DAC solutions, alsamixer shows that there is *no* volume control for the output device.
So, how can I vary the playback volume?
Obviously BASS_SetVolume() won't do anything.
Should I be looking at BASS_ChannelSetAttribute for this?
The documentation says 0.0 means silent, 1.0 means normal, and above 1.0 means amplification.
What about if I use, say 0.5f? Would that give me 50% volume?
I have experimented a little with this, but unless I use 1.0, it seems like it's muted the sound.
A little clarification would go a long way, here. I am, as ever, willing to hear an explanation that in fact, not only am I barking up thr wrong tree, but that the forest is also wrong!