At Wed, 30 Aug 2006 12:53:27 +0200, Luca bedogni wrote: > > Hi all > first message from me here. > I'm writing a simple application for interacting with alsa. All's ok, > except for the volume. > I open the pcm devices correctly, but then can't find nothing to get > the current volume and setting the new one, such alsamixer does. > > Any idea? Currently, there is no explicit API which mixer element corresponds to a certain PCM stream. So, most apps use simply the mixer interface and access either "PCM" or "Master" mixer element for controlling the total volume. In theory, it's possible to build a softvol entry for each PCM substream so that the volume can be controlled independently by each app even if the hardware multi-stream PCM volume control isn't possible. But, it's still in dream as long as unimplemented... Takashi ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel