1. You can use a shell script and ossmix for this. Something like
- Code: Select all
ossmix app volumes
ossmix can accept an app name for a volume argument**, so this should work.
** If the app uses multiple engines [vmix.pcms] it'd be problematic - but I haven't yet seen an app which does it.
2. I sent a patch to oss-devel which let ossxmix do exactly this, but it was rejected. If you're willing to recompile ossxmix this could do this (minus: it involves constant polling of the mixer).