Per application volume control with alsa?

Hi
I have alsa sound platform and i am wondering if it is possible to control the volume of each application? I know it is possible with pulseaudio and OSS.

Hi,
below I dump .asoundrc I used some time ago. It allows to play
e.g. two audio streams at the same time with different volume:
aplay -D tnsrch1 someaudio.wav
aplay -D magnet1 otheraudio.wav
The .asoundrc has been created for a sound card with 4 capture and 4 playback channels.
pcm.!default pcm.channel1
pcm.snd_card0 {
type hw
card 0
device 0
ctl.snd_card0 {
type hw
card 0
device 0
pcm.dmix0 {
type dmix
ipc_key 1024
ipc_key_add_uid true
slave.pcm "snd_card0"
slave {
period_time 0
period_size 1024
buffer_size 4096
rate 48000
channels 4
format S32_LE
bindings {
0 0
1 1
2 2
3 3
ctl.dmix0 {
type hw
card 0
device 0
pcm.dsnoop0 {
type dsnoop
ipc_key 2048
ipc_key_add_uid true
slave.pcm "snd_card0"
slave {
period_time 0
period_size 1024
buffer_size 4096
rate 48000
channels 4
bindings {
0 0
1 1
2 2
3 3
ctl.dsnoop0 {
type hw
card 0
device 0
pcm.channel1 {
type asym
playback.pcm {
type plug
slave.pcm "dmix0"
ttable.0.0 1
capture.pcm {
type plug
slave.pcm "dsnoop0"
ttable.0.0 1
ctl.channel1 {
type hw
card 0
device 0
pcm.channel2 {
type asym
playback.pcm {
type plug
slave.pcm "dmix0"
ttable.0.1 1
capture.pcm {
type plug
slave.pcm "dsnoop0"
ttable.0.1 1
ctl.channel2 {
type hw
card 0
device 0
pcm.channel3 {
type asym
playback.pcm {
type plug
slave.pcm "dmix0"
ttable.0.2 1
capture.pcm {
type plug
slave.pcm "dsnoop0"
ttable.0.2 1
ctl.channel3 {
type hw
card 0
device 0
pcm.channel4 {
type asym
playback.pcm {
type plug
slave.pcm "dmix0"
ttable.0.3 1
capture.pcm {
type plug
slave.pcm "dsnoop0"
ttable.0.3 1
ctl.channel4 {
type hw
card 0
device 0
# Rufen port 2110
pcm.rufen {
type plug
slave.pcm "dmix0"
ttable.0.0 1
ttable.0.1 1
ttable.0.2 1
ttable.0.3 1
# Beam-Warnungen port 2001
pcm.beam {
type plug
slave.pcm "dmix0"
ttable.0.0 1
ttable.0.1 1
ttable.0.2 1
ttable.0.3 1
# Magnet-Warnungen port 2003
# Magnet-Warnung channel, with software controls for each channel
# channel "magnet" should be the destination for magnet currentannopuncements
# "Magnet<N>" should be used to switch a channel on or off by setting the
# volume e.g.: amixer set Magnet1 80%
pcm.magnet1 {
type softvol
slave.pcm "channel1"
control {
name "Magnet1"
card 0
pcm.magnet2 {
type softvol
slave.pcm "channel2"
control {
name "Magnet2"
card 0
pcm.magnet3 {
type softvol
slave.pcm "channel3"
control {
name "Magnet3"
card 0
pcm.magnet_multi {
type multi
slaves.a.pcm "magnet1"
slaves.a.channels 1
slaves.b.pcm "magnet2"
slaves.b.channels 1
slaves.c.pcm "magnet3"
slaves.c.channels 1
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave b
bindings.1.channel 0
bindings.2.slave c
bindings.2.channel 0
pcm.magnet {
type plug
slave.pcm "magnet_multi"
ttable.0.0 1
ttable.0.1 1
ttable.0.2 1
# Tunnel search port 2010
# Tunnes search channel, with software controls for each channel
# channel "tnsrch" should be the destination for tunnel search annopuncements
# "Tnsrch<N>" should be used to switch a channel on or offf by setting the
# volume e.g.: amixer set Tnsrch1 0%
pcm.tnsrch1 {
type softvol
slave.pcm "channel1"
control {
name "Tnsrch1"
card 0
pcm.tnsrch2 {
type softvol
slave.pcm "channel2"
control {
name "Tnsrch2"
card 0
pcm.tnsrch3 {
type softvol
slave.pcm "channel3"
control {
name "Tnsrch3"
card 0
pcm.tnsrch_multi {
type multi
slaves.a.pcm "tnsrch1"
slaves.a.channels 1
slaves.b.pcm "tnsrch2"
slaves.b.channels 1
slaves.c.pcm "tnsrch3"
slaves.c.channels 1
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave b
bindings.1.channel 0
bindings.2.slave c
bindings.2.channel 0
pcm.tnsrch {
type plug
slave.pcm "tnsrch_multi"
ttable.0.0 1
ttable.0.1 1
ttable.0.2 1

Similar Messages

  • Is there anyway to disable "per application" volume control ?

    Is there anyway to disable "per application" volume control !? 
    Keep it simple. You can leave per device  existing, but per application is a big mess.
    I need to spend a lot of time to found why am listening a sound if I decrease all my device volume. 
    I really hate it. It is not usefull for me, it just worsens my experience with Windows OS. 
    I always used Widnows, it was much better when this feature simply did not exist.

    Hi,
    It is by design,  I’m afraid that there’s no way to change it.
    You can right click the sound icon in the right-bottom corner, open volume mixer or volume control options to change the settings you want.
    Regards,
    Yolanda
    Yolanda
    TechNet Community Support

  • Per Application Volume Control

    The one decent thing I have noticed about Vista is that it has an easy to use per-application volume control. I haven't seen anything like this in Leopard so far. Does anyone know if there is a free third-party application that can be used for this type of thing. I have looked in Audio Hijack Pro but it is a little more than I was looking for and much more complicated than the Vista application.

    If there is you would find it at VersionTracker or MacUpdate.

  • Application Volume Control

    So I don't understand why there isn't individual application volume control for OSX. I am certain I saw a post in 2007 about this and has yet to be a thing.
    It is IMPOSSIBLE to FaceTime and watch netflix at the same time on my MBP (current gen) without my ear drums blowing out from the volume difference between the two apps.
    I feel like it would take software developers 10 days to work it out for their native apps and publish this much needed patch.
    SMH Apple.

    If there is you would find it at VersionTracker or MacUpdate.

  • Updated ipod touch 3G to ios 5.0.1 and only have volume control with headphones doesnt work in bose dock anymore

    I just updated my 3G ipod touch to ios 5.0.1 and lost volume control except when headphones are used, it will no longer work in my speaker dock, any suggestions?

    - iOS 5 seems to have messed up connecting with Bose docks:
    Re: iPhone 4 upgraded to iOS5, now Bose SoundDock not working
    - Have you tried the standard fixes
    --- Reset. Nothing will be lost
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears
    --- Restore from backup
    --- Restore to factory defaults/new iPod

  • Volume control with USB Audio device

    Hello all.
    I have just purchased a cheap USB audio device to connect my HiFi to my laptop with only one, neat USB lead and a USB hub - meaning I no longer need several USB wires and an audio cable across my desk.
    This works fine, but I have just noticed that the volume control in OS X has no effect on the output now, only Mute or On. The volume within iTunes works fine, but not the OS X one.
    Any way I can avoid having to use the volume on the hifi when using the USB Audio device?
    Many thanks.

    Don't think so unless that piece of hardware came with compatible Mac software to control it.

  • Keyboard Button Volume Control with PulseAudio

    Does the Volume Control script in the PulseAudio Arch wiki work with the volume control buttons on my keyboard?
    If not, is there a way to get my volume up, volume down, and mute dedicated keys on my keyboard to work?
    Thank you in advance! :-)

    lexan wrote:Does the Volume Control script in the PulseAudio Arch wiki work with the volume control buttons on my keyboard?
    I guess you'll have to try it and see.
    If not, you can try xbindkeys.

  • Seperate application volume control

    is there any way to control volume separately for different applications?
    For instance, i want to be able to enable iTunes but mute firefox, so that i can listen to iTunes while visiting a sites with sound, and not have to listen to the website.
    i imagine there is some freeware somewhere, i just haven't found it.
    thanks.

    If there is you would find it at VersionTracker or MacUpdate.

  • Volume control with remote

    hello,
    I use i tune with airport express to listen music on my hifi. I want to use the remote from the i book to control volume. but it just control the volume on the i book and not the signal sent to the hifi.
    is it possible to control the volume sent to the hifi with the remote ?
    MacBook   Mac OS X (10.4.7)  

    It is very odd... when you adjust the iTunes volume slider bar volume output to the Stereo is adjusted ... Why can't this be done with the Apple Remote? Silly. (My Stereo is an old school NAD amp... no remote).
    D.

  • Chromium takes over system volume control

    Hi forum,
    I'm using GNOME, ALSA (no PulseAudio or ESD), and Chromium on an i686 install.  On my laptop (an Asus F3Jm), Master is a toggle control, and PCM is the slider that controls the system volume.  The volume hotkeys on my laptop work correctly and control the PCM slider.  However, when I open a Flash applet or an HTML5 video in Chromium, the PCM volume jumps to 100% and cannot be controlled by the hotkeys (not even muted); instead, the applet's volume control is the only way I have to control the volume.  This is not an acceptable situation for me as some sites (for example Livestream) don't remember my volume setting and start off at 100% volume every time.
    Well, sometimes.  Once in a while it actually does work as expected (application volume controlled independent of system volume, and system volume can still be controlled via hotkeys), which is the part I find particularly confusing.  I haven't figured out what the situations are where it does and doesn't take over the volume control.
    (EDIT: It seems that it happens the first time, and only the first time, that I start Chromium after each system boot.  So one "workaround" could be to never shut down or reboot...)
    I don't believe the OSS emulation is being used, because I've unloaded and blacklisted the snd_*_oss modules and don't have alsa-oss installed.  It's possible that Chromium is using the hw device instead of the default, but I don't know how to check for this or fix it.  I don't have Firefox installed, but I suppose I could try it if someone thinks a comparison might be useful.
    Package versions:
    alsa-lib 1.0.22-1
    chromium 4.0.249.78-3
    flashplugin 10.0.42.34-1
    <your requested package here>
    Thanks in advance for your suggestions.
    Last edited by tarpman (2010-02-11 17:02:44)

    ALSA doesn't support per application volume control, which would explain the behavior. That behavior, however, is still incorrect, as normally applications respect the volume level and don't overwrite it without user intervention.
    A simple solution would be to switch to (at least for me) more advanced OSSv4 or use pulse audio (which I personally dislike).
    You should file a bug report for chromium (or check whether you got some settings wrong).

  • Audigy 2 ZS Platinum Software Issue: Volume Control, Speaker Settings, Equalizer, C

    I installed my ZS Platinum back in December, everything worked fine for 2 months, then I started to hit trouble.
    First, the driver began hanging when I took my headphones in/out, resulting in no sound from either output. I updated the drivers and this problem went away.
    Then, I was gaming and all the sound stopped working. Reboots did nothing, so I tried to reinstall the drivers. This is how the problems began. The first time I uninstalled all my creative stuff, downloaded the newest drivers, and installed that. I didn't realize that I couldn't download all the bells and whistles off the drivers page.
    So, I unistalled those drivers, and used my CD to install the drivers and MediaSource. I encountered the PLXcore.plx error during install and every time I booted Windows. Also, none of the extra applications (Volume Control, Speaker Settings, Graphic Equalizer, CMSS) would run. I uninstalled, reinstalled and tried again.
    This is where I am now. I chose not to install MediaSource this time. Again, I encountered the PLXcore.plx error during install, but I'm not receiving the error when Windows boots (because I didn't install MediaSource?). But still, most of the little applications don't run. I see the Volume Control icon in my task bar, and if I press the mute button on the keyboard the symbol changes, but when I click on the icon, nothing happens. "Creative Volume Con..." flashes on the taskbar, and a 0px by 0px white box appears above the task bar. If I click anywhere else, they disappear. The Graphic Equalizer, Speaker Settings, and CMSS dialog do the same thing when opened. THX Console does not.
    Also, the on screen display for volume no longer pops up. Is this part of MediaSource? Should I install MediaSource even if I don't plan to use it's
    Running XP SP2 on an AMD X2 4200+ with the Audigy 2 ZS Platinum.
    EDIT: Thought I'd add in another problem I have:
    I usally run my DISH reciever's sound through my computer through the Auxillary 2 RCA connections on my front panel. When I boot World of Warcraft or Warcraft III (Both Blizzard games), the sound through this connection becomes very tinny and reverby. If I alt+tab out of the game, adjust the speaker setting (5. -> Headphones -> 5.) the issue goes away. But each time I start one of these games, the problem returns. Any ideas? Known problem?Message Edited by Cuttlefish on 03--200703:9 PM

    I'm sorry I can't help but I have the exact same problem. I have no Speaker, EAX or graphic eq settings. No telling what else don't work. I have tryied 0 different ways of removing and loading it back with any and all updats and without and no success. I hope someone here can help us.

  • Titanium Dolby Digital - Windows Volume Controls Not Function

    I am extremely happy with the Titanium because it finally elminated the 4GB Snap-Crackle-Pop issues I've been having since I owned this motherboard.
    However, I've noticed that when I enabled Dolby Digital encoding over an optical output the master windows volume controls and muting do not affect the audio output at all.
    Using the master windows volume controls with the analog or unencoded digital optical outputs work fine. It is only when using Dolby Digital encoding that I see this strange behavior. In-game and application-level volume controls & muting work fine; it is only the master windows volume controls that are 'ignored' when using Dolby Digital.
    I'm still happy to see Dolby Digital encoding on this card, and very pleased that I'm using 4GB now without crackling in games or during music, but hopefully this Dolby Digital issue can be fixed.
    Have any other users observed this odd Dolby Digital behavior?

    Unfortunately (for me) the two of you are correct and windows volume controls have no effect in Vista.
    Auzentech has this on their FAQ:
    Q : After installing the sound card and connecting it to my surround sound system using S/PDIF output, keyboard and Control Panel adjustments to Volume and Balance either do not work or have minimal affect. Is that normal
    A : With Digital Audio output, output levels are controlled by the wave volume settings. Multimedia keyboards and remote controls only adjust the master volume. The third-party application "Volume Tracker" corrects the situation by linking wave volume and master volume. Volume Tracker is compatible with Windows 2000, XP and Windows Media Center.
    I also found this article:
    "Another direct consequence of transmitting a compressed audio signal instead of an uncompressed audio signal (more commonly known as PCM) is that the volume of that signal cannot be modified once it has been encoded. Because the bits in an encoded signal no longer directly correspond to the volume of that signal, it is impossible to increase the volume until it is decoded. This explains why your PC cannot control the volume of your sound when you are using Dolby Digital or DTS as the output. The connected device will be the only place where the volume can be changed."
    http://windowsvistablog.com/blogs/windowsvista/archi've/2008/03/04/using-s-pdif-to-send-audio-from-your-pc.aspx
    So it would seem that this behavior is not only intended, but apparently unchangeable in Vista. In XP there is a utility (Volume Tracker) that can fix this, reportedly. This utility has no effect in Vista.

  • Volume control when using Apple TV for playing video

    Hi,
    I'm using a pair of active speakers with no built in volume control with my Apple TV. When using the ATV for streaming audio (for example Spotify) I can control the volume with the iOS device I'm using as the source, but not while streaming video. Why is that, and, is there anything I can do about it?
    //J

    does the sound on the pad work for face time when you are using in on the pad, with no apple tv involved?
    If so - apple tv uses a ton of resources.  Facetime uses a ton of resources.  facetime over the TV is hit or miss.
    doulble tap the home button, and see what is in the rask bar.  Close off everything else by touching and holding an icon until they jiggle, the close them by touchinmg the minus sign.

  • IOS 5.1.1. update bug (Volume Control)

    This thread concerns IOS 5.1.1. update and the subsequent loss of volume button functionality and use of internal speakers.
    Please can someone help from the mac team!
    It's not a jailbreak phone. only purchased in early April on O2. Updated to 5.1.1. yesterday morning and now the volume buttons are virtually redundant!. Here are the symptoms;
    When the volume buttons are pressed on the home screen i get "ringer" and the speaker symbol appear but nothing more (ie. +/- volume)
    When playing back from iTunes with no headphones in, I get nothing through the internal speakers, nor do the volume buttons work, nor is the volume slider visable.
    When i playback Youtube content with no headphones in, I get nothing through the internal speakers, nor do the volume buttons work, nor is the volume slider visable.
    With headphones plugged in sound is audible and volume buttons work.
    Whilst using voicemail, (no headphones connected) i can play the message through the speakers and control volume using side buttons.
    What's the deal Mac Support? I have restored the phone twice and also given the headphone jack a good blow with Servisol Duster 101.
    Thanks, P

    Hi,
    I have the same problem with one of our two iPhone 4S's.  I purchased 2 - 16gig iPhone 4S's at the same time from the online Apple Store here in Canada;  one white and one black.  I updated both the phones on the same night,  within hours of eachother.  Updating my black 16gig iPhone 4S went flawlessly.  Updating the white iPhone 4S seemed to go fine until the day after when my wife said the volume buttons weren't working.  Also,  the volume slider is simply gone.  The volume buttons work and the volume slider shows up when headphones are plugged in.  There is volume and volume control with headphones,  but not through speakers.  The mute toggle switch on the side seems to work,  except when it comes to sound output through the speakers. 
    It hasn't debilitated the device,  but it's very frustrating for her because she can't hear her phone ringing.  I tried the "headphone jack" trick to know avail.
    iPhone Team,  please validate the issue and push a fix!

  • Digital audio ouput - why no volume control??

    This is a problem that has been around for a while (ie. pre-Leopard).
    Why is there *no global volume control* when using digital audio output? This includes the inability to mute the output as well as adjust the volume with either the keyboard or the apple remote.
    It is *particularly annoying* with Leopard's Front Row as music is not being played via iTunes anymore so I can't use the iTunes volume control...
    Please fix this Apple, it can't be that hard. There is no logical reason for disabling volume control for digital outpu!
    Thanks,
    Paul Martin

    nitramluap wrote:
    It IS possible, actually and its omission makes no sense.
    Yes, it is possible but it isn't desirable. Here's why:
    For any linear digital audio encoding process, the bit depth determines the resolution of the volume levels the format can reproduce. For example, for 16 bit audio there are 65536 possible volume levels between dead silent & the absolute maximum possible level (digital clipping). For 24 bit audio there are about 16.7 million levels.
    So let's say that you want to turn down the volume at the digital output. The only way to do this is by throwing away all of those levels louder than the desired volume by scaling the output to what is effectively a lower bit depth. One half as loud means the most significant bit ("MSB") will never be a one; half that loud & the next MSB won't be used, & so on.
    At first, this doesn't seem so bad but the problem is the human ear doesn't interpret "one half as loud" as you might think: hearing is logarithmic (which is why we usually use the logarithmic unit "dB" to measure it), so a sound that is 1/2 the intensity of maximum is only slightly quieter to the ear. Depending on the maximum level the digital input device can produce, it could easily be necessary to scale the digital output to one ten thousandth or less of the maximum output just to achieve a comfortable level, & to scale it much smaller still for background music levels.
    So, for an effective volume control with a usable range from "very quiet" to "full tilt" you would really be going from "miserably inadequate resolution" to "high quality resolution."
    If you want to hear just how miserable sounding the quiet settings would be, & you have any sound editing software that can change digital volume levels of samples, try this:
    Select a short sample & reduce it by 40 dB. Save it & then renormalize that saved sample to full scale. Listen to the result & compare it to the original. Not too pleasant, is it?

Maybe you are looking for

  • Can only edit one editable region

    Hi, I have defined two editable regions in a template. I can edit one fine, but not the other. The one I cannot edit is for a submenu and picture on this site: 67.199.64.241/ Any ideas? Any help would be greatly appreciated. This is the code (which I

  • Cant login

    Hey i have i problem! When i open skype, and i log-in. It stucks on: Logging in (In dutch 'Aanmelden'), And i wont be able to log-in! Can please someone help me. I tried everything! 

  • Distribution of sap systems

    hello, do anyone know the distribution of the sap systems to the different operating systems. is there a diagram, like a cake diagram, on the sap marketplace where you can see the distribution. thanks winfried geisselbrecht

  • Line-pattern in movies imported

    After importing movies taken with Sony HX9V in HD, a line-based pattern starts to exist in the imported movies. I might not have access of the original files from the HX9V. Is this solvable? See this link for a visual: http://i.imm.io/BFW7.png The li

  • Not being able to clear disk permissions

    I have just completed the difficult task of migrating from 10.4.11 to 10.5.8 -- especially Mail, Address Book, etc. I did this when I upgraded to a larger 7200 rpm internal drive and replaced the SuperDrive on my MacBook Pro. Now, all of my data is b