Threaded alsa sound noise issues

Hello, everyone!
I'm trying to make alsa work in threaded mode, i.e. allow more than one application to produce sounds.
All I've done so far is made /etc/asound.conf
As you can see from this config I use dmix to mix different sound threads
#/etc/asound.conf start:
pcm.!default {
type plug
slave.pcm "dmixer"
pcm.dsp0 {
type plug
slave.pcm "dmixer"
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 32768
rate 48000 #many new cards are 48000 only
bindings {
0 0
1 1
ctl.dmixer {
type hw
card 0
#end.
So I use dmixer as a default mixer. Now I can get reasonably good sound in xmms/audacious+firefox+mplayer/xine.
Without this config alsa worked only for one application at a time.
The only issue I have with alsa is sometimes noise from for example bass,i.e. low frequencies. But sometimes noise limited to very short time intervals appears out of nowhere. It's very annoying. SDL or oss don't produce such noise but they want full access to /dev/dsp and the whole point of threaded sound is violated.
Any critical input about or useful thoughts on reducing sound noise are appreciated.
ps I have old audio card CMedia with 2.1 support.
Last edited by corrupt (2008-04-14 17:40:32)

SDL will use ALSA if told - put this in ~/.bashrc
# http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fenvvars
# http://www.libsdl.org/faq.php?action=listentries&category=3
export SDL_AUDIODRIVER=alsa
For the "chirping", all I can suggest is to experiment with different values for period_size and buffer_size.

Similar Messages

  • Bluetooth sound - noise issues

    I'm having issues using my Bluetooth speaker (Monster Clarity HD) together with my MacBook Pro (13' mid-2010 running Snow Leopard).
    Every fifth minute or so the issues appear as disturbance in the sound and gets worse until what's coming out of the speaker is unrecognizable.
    Here's a video of the issue in action, just listen: http://www.youtube.com/watch?v=OSujnxhut4M
    Does anyone recogize this problem? Suggestions?

    SDL will use ALSA if told - put this in ~/.bashrc
    # http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fenvvars
    # http://www.libsdl.org/faq.php?action=listentries&category=3
    export SDL_AUDIODRIVER=alsa
    For the "chirping", all I can suggest is to experiment with different values for period_size and buffer_size.

  • Has Apple addressed poor sound quality issues with new 160GB iPod classic?

    I just bought a new 160GB iPod classic, replacing a perfectly good 80GB iPod Video (5.5), thinking that the newer one would be superior to my 3 year old model. I discovered that the sound of the new unit was flat and muddy compared to the older model. I found that the 5th gen iPod video was more "spacial", if that's an appropriate word to use; the bass was more present and more clearly defined, as was the rest of the sonic spectrum. I searched several forums to research this issue and while there were numerous references to this issue, all of the posts I found referred to the original iPod classics (80GB and 160GB) and not the later 120GB classics nor the new 160GB classics like the one I bought. Has Apple done anything to address this issue since the first classics were released or are the new ones still suffering from the same sound quality issues as the original classics?

    Based on your observations here, they apparently have not changed the sound quality since the original 160GB classic. I noticed a clear narrowing of the sound stage (ambiance) between the 5.5G 80Gb and my 6G 160GB. You're describing the same characteristic. I don't own the newest 160GB version and came here today to see if it might have improved the sound quality back to the 5.5 spaciousness. Note that the 5.5G has a higher signal to noise ratio than the 6G, making it difficult for me to enjoy it through efficient balanced armature in ear monitors like the Shure SE530s or Ulimate Ears Triple.Fi 10s.

  • HT4543 Audible fan sounds (noise). Nothing is blocking the vents and the temperature in the room is normal. Fan goes on and off, sometimes on for a minute.

    Audible fan sounds (noise). Nothing is blocking the vents and the room temp. is normal. Fan sound goes on and off but this morning the sound came on for well over a minute.

    Since you don't say how old your iMac is, have you cleaned out the dust? Dust buildup can lead to over heating issues. Remove any and all things plugged into it including the power cord, Remove the RAM access grille. Vacuum all openings starting with the RAM access area (air intake). Vacuum all ports and plugs, DVD slot and the opening across the top of the rear of the body. Blow compressed air through all your openings and vacuum again to remove any dust you loosend. Reinstall the RAM grille. Plug in the keyboard and mouse if not blue tooth. Insert power cord...
    You are now in a perfect position to do a
    SMC RESET
    http://support.apple.com/kb/HT3964
    Shut down the computer.
    Unplug the computer's power cord and ALL peripherals.
    Wait 15 seconds.
    Attach the computers power cable.
    Wait another 5 seconds and press the power button to turn on the computer.
    It is the 5 second timing that initiates the reset.
    Here is a Widget to monitor your temps and other operations:
    http://islayer.com/apps/istatpro/

  • The Ever-present Fan Noise Issue

    Has there been a definite resolution to the fan noise issue on the iMacs? My 20' started after about a week while I was watching a movie. I can't really work on it without having iTunes (or some other noise) in the background.
    A while ago, I read a post about having it narrowed down to the "Optical Drive Fan" (or something like that) being loose/broken/cheaply built (perhaps a combination of the three) and it made sense when I looked at the back of my mac and covered the vent to listen to the difference.
    I haven't heard about anyone getting this fixed and the problem being solved, but I would certainly like to. From the sounds of things, some Apple techs are a little premature to replace logic boards and mid-planes and things of the like. The one that I talked to "hadn't heard" of any noise issues and thought it might be a power supply, but I haven't had the time to take it in yet.
    If someone has a definite solution (more than just speculation or complaints), I would appreciate hearing. I don't feel like waiting 1-2 weeks for a part that I don't need, if I just have to take it in to the tech for 45 minutes to tighten a fan.

    programs it didn't open: limewire, clamav,onyx, menumeters, my driver for my mouse, and a few others.
    CS2 took a while to load as did mac office.
    the rendering in CS2 was aweful! now i know why steve said it was no good for pros.
    the native apps were quick but not enough to sell me on it.
    i had a rev a imac g5 with 2 gigs of ram and it screamed.
    i plan to make out my new 2.1 with 2.5 and she will scream as well.
    the intel duo is nice..if you like to look at activity moniter and see to cpu's but to me its not worth the hassle of dealing with beta apps and all that.
    the g5 is more than capable of handling all my tasks and themsome.
    i'm gonna wait to upgrade. unless they come out with something amazing this year.

  • Alsa sound laptop problem

    Hello everybody
    i have a small problem with alsa sound,
    what's the point? When i want to hear sound from laptop output sound doesn't work, when i plug in headphones or different audio hardware sound is working!
    what could happend ? meybe somebody has a similar problem ?

    pogi wrote:When i want to hear sound from laptop output sound doesn't work, when i plug in headphones or different audio hardware sound is working!
    Relevant threads:
    https://bbs.archlinux.org/viewtopic.php?id=125522
    https://bbs.archlinux.org/viewtopic.php?id=133987

  • Noise Issues

    I know everyone has probably posted about these same noise problems before, but only one or two people posted audio of their noise, so I don't know if we are all on the same page or not.
    I have two completely distinct noises coming from my MBP (it is a 1.83 all stock with just RAM upgraded from Apple).
    The first one is a hum noise (I know this one seems pretty prevalent) that comes from the right speaker area and goes away when at full brightness or backlight off. Here is a link to a video of the noise:
    http://homepage.mac.com/jimdufek/mbp/movies/humming_noise.mov
    From what I gather, this is a problem with the power inverter for the display and can be fixed by shipping back your MBP. Has anyone that had this problem shipped theirs to Apple and gotten it back? If so was it fixed properly and how long was your wait?
    Second noise issue is a bit weirder. It is a squealing noise coming from somewhere in the middle or under the keyboard. It is very infrequent and if I move the MBP at a slight angle (as if it is resting on my lap) the noise goes away. I have tried PhotoBooth, Bluetooth on and off, Airport on and off, volume max and min, AC power and just battery life and none of them have any change. The noise only lasts for a few seconds and then is gone, but will come back in 10 seconds or in two hours. Below is a video of that noise:
    http://homepage.mac.com/jimdufek/mbp/movies/squeal_noise.mov
    Again, does anyone have this noise and if so did Apple diagnose it and fix it yet?
    I want to get my MBP fixed, but am worried that this second noise is something they will miss and I will ship my MBP only to still have this noise. I am thinking about taking it to an Apple Store (since they will hopefully be able to hear this problem), but can they fix it in store or swap it out for a new one in store?
    Sorry for being so long winded - thanks in advance!
    DISCLAIMER: The audio in the above videos was boosted on the camera - it is NOT that loud in real life, but it is audible with no electronic devices.
    PowerMac G5 Dual 2.0 Ghz - 2.5 Gb RAM / MacBook Pro 1.83 - 1 Gb RAM   Mac OS X (10.4.5)   Dual 23" Apple Cinema Displays / iPod 30 Gb 5th Gen

    ouch that is annoying! but if its not that loud i
    dont think you should be posting it at all, it'll
    give a wrong impression, because that sound at that
    level is annoying. but thanks for sharing!
    "if its not that loud i dont think you should be posting it at all, it'll give a wrong impression". What in the world are you trying to say?! I have this same problem (two different types of whine/buzz) and it is REALLY annoying and it deserves to be brought to everyones attention. "It'll give a wrong impression"???? What the ****! GET A GRIP! Its exactly as he/she said it is. ITS ANNOYING and untill you hear this buzzing noises comming from your minute old, $3000.00 MacBook, I really don't think you will understand how bad it is.

  • To everyone with IOS6 Sound related issues & Others

    If you are facing a problem of not having any system sounds, notification sounds, no calls or other software sound related issues I'd suggest you read below it's a stupidly simple fix and it should solve most software issues after an immediate iOS6 update:
    After updating unplug the phone from your computer and leave the phone alone for 5-10 minutes, if you still have problems: reboot, wait a few minutes and all sound related problems should be fixed.
    When I updated to iOS 6 I had lost my system sounds, so I unplugged from the computer, rebooted the phone and still no go. I decided to just let the system "settle in" for a bit, let it lock and when I unlocked after 5-10 minutes sounds were back and everythings up and running again.

    Well, to break it down. After my sounds finally came back (2nd time losing them) last night I decided to restore the phone in itunes. I did it twice. First time I backed up my data. Second time I restored it as a factory iPhone. Both times guess what NO SOUNDS! I also realized that last night I had lost my sounds after charging my phone and unplugging it from the data cord. I still have ringtones (when someone calls), but text messages, emails, and any other alert tones do not work. I cannot turn the volume up or down with the side buttons and also music does not play. It doesn't even have a slide bar at the bottom.
    I am on the phone with apple care now. They seem to not be aware of the problem at all.
    While I was on the phone with them my sounds ended up coming back, imagine that. Hopefully every time I charge my phone I am not going to have this issue.

  • Sound input issues.  Not related to Soundflower or Balance issues

    So.  With the sound flower issues fixed.  And my balance knobs in place for my stereo speakers.  I have opened up a new song I have been writing.  Again the AVIGrandpiano app was the track I was recording on.  Like my previous post from last week the input on the new music was very faint and not at all matching the input of the previous recorded music.  (See Screenshot on earlier posts) 
    I am at a loss as to where to begin to fix this. 

    Pampido wrote:
    Anyone experiencing similar issues? Or know of a solution?
    Not having any issues with my device at all.

  • Hi , I suhail khan from india and i am user of iMac system 10,1.These days i am facing the sound enabling issue with my iMac system I am not able to hear sound in my iMac system.So kindly suggest me how to enable sound in my iMac . Please no the needful.

                      Hi , I suhail khan from india and i am user of iMac system 10,1.These days i am facing the sound enabling issue with my iMac system I am not able to hear sound in my iMac system.So kindly suggest me how to enable sound in my iMac . Please no the needful.

    Take each of the following steps that you haven't already tried.
    1. If you've recently plugged anything into the audio-out (headphone) port, plug and unplug it a couple of times.
    2. From the menu bar, select
     ▹ System Preferences ▹ Sound ▹ Output
    Check the settings. The internal speakers should be selected as the output device, the Mute box should not be checked, and the volume slider should be at least halfway to the right.
    3. Look inside the headphone port. If a red light is coming from the port, the internal switch is stuck in the position for digital output. You may be able to free it by inserting and removing a headphone mini-stereo jack of the proper size.Inserting any kind of tool in the port may cause damage that won't be covered by your warranty.
    4. Boot in safe mode by holding down the shift key at the startup chime. It will take much longer than usual. You don't have to log in; just reboot as usual (without holding any keys) when the login screen appears. (Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.)
    5. Reset the NVRAM.
    6. Reset the SMC.
    7. Reinstall OS X after backing up all data as a precaution. You won't need your backup unless something goes wrong.
    8. Make a "Genius" appointment at an Apple Store.
    Back up all data on the internal drive(s) before you hand over your computer to anyone. If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to bare metal from any of them.) Don’t erase the recovery partition, if present.
    *An SSD doesn't need to be zeroed.

  • Making sound noise when connect to the electricity plug

    I am using Pavilion dv6-2150us notebook.
    My problem is when I connect to the electricity plug my note book makes sound noise when I on the sound. I could not use the wound while connected in electricity. Please help to solve this problem

    http://support.apple.com/kb/TS3281
    try restoring the iPhone but if no change
    Then take it to an Apple Retail store with $199 and exchange for a refurbished replacement

  • IPod classic sound quality issues

    Hi guys,
    I understand probably it's too much early to discuss this topic but anyway I try to ask.
    In order to the release of the new model (yesterday's event in USA)of the classic, anybody has any news about the sound quality complaints arised in the previous months?
    I mean, anybody knows if the quality sound problems, due to the change of the sound micro-chip, have been solved in the new modelMany thanks in advance for the help.

    Excellent question, the answer to which I eagerly await. If the sound quality improves, I might purchase a 120GB, otherwise, there are now alternatives by competitors with 120GB capacity, similar form factors, built in FM radio, subscription music services, and wireless sync of the music library for the same price as Apple's 120GB. They don't have the sound stage issue as the 160GB Classic. There is even a 240GB model being offered by a competitor.
    Too bad Apple didn't release a 240GB Ipod classic. Toshiba, Apple's hard drive manufacturer, announced a 240GB 1.8" drive on 9/9, coincident with the Apple Ipod announcements. I have a large and growing library of classical recordings as I explore the classical catalog, as well as many Podcasts. I could really use the space! I've input this request on Apple's Ipod feedback page and suggest that any like minded customers do the same.

  • Nikon Images, Noise issues in Photoshop only

    I use Nikon cameras and shoot raw files processing them in ACR and then bringing them into Photoshop. I notice that after the images are processed and saved as jpegs. when I look at the final image in a Microsoft film strip browser, the noise which shows in Photoshop disappears in that viewer. In Photoshop I am viewing everything at 100% I cannot figure out how that happens and what is the true quality of the image. I am just wondering where I can see the true final quality of the image. I would rather not use any noise reduction on the images. I do not like the quality of the image after using that tool.
    I also shoot with Canon equipment and I never have and noise issue. I am aware that Nikon has noise issues at higher iso's and when the image is underexposed but I am taking that into consideration when processing, I also process in light room and Nikon capture but in those products I know that they have some different algorythums to correct the noise.
    Thanks for any comments or suggestions on this issue.

    Photoshop is color managed and is using your monitor profile in an attempt at accurately portraying your image. Most image viewers are not color managed.

  • Very bad sounding noise.

    Today I turned my computer on and was greeted with a very bad-sounding noise coming from the top-left of the computer, right under the escape key. It sounds like a motor running, but i've never heard it before. Just to clarify, this is a macbook pro with the click button.

    Go to this apple website:
    https://selfsolve.apple.com/GetWarranty.do
    and put in your serial number.
    To get your serial number click the apple in the top left corner of the menubar. then click about this mac. Then click the button that says more info. your serial number should be listed there!
    FYI - that definitely sounds like a bad fan, Ive had the same problem before!
    Hope this helps.
    Message was edited by: thirdeyeopen23

  • Alsa sound disappeared between kernel 2.6.30 and 2.6.33

    My last working alsa was running on kernel 2.6.30.6. Some months ago, I upgraded and the sound disappeared. Due to other programs, I now want a fully updated kernel and get 2.6.33-2-1. The alsa sound still does'nt work. I get the sound back by downgrading to 2.6.30, but other things then fails.
    I'm using an LG A1 Express. As far as I can see, everything looks ok, but I don't hear any sound.
    I have used alsaconf, and got expected output. Alsamixer is used to unmute and set up audio-sources.
    Grateful to any suggestions!
    /bong
    # ls /dev/snd
    by-path/ controlC0 hwC0D0 hwC0D1 pcmC0D0c pcmC0D0p pcmC0D1p pcmC0D2c seq timer
    # ls /dev/snd/by-path
    pci-0000:00:1b.0@
    # lspci
    00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
    00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
    00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
    00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
    00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
    00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
    00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
    00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
    00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
    00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
    00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
    00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
    02:00.0 Ethernet controller: Agere Systems ET-131x PCI-E Ethernet Controller (rev 03)
    05:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
    06:00.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
    06:00.1 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
    06:00.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
    06:00.4 SD Host controller: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller
    # lsmod |grep snd
    snd_hda_codec_realtek 186046 1
    snd_seq_dummy 1067 0
    snd_hda_intel 19249 3
    snd_seq_oss 24984 0
    snd_seq_midi_event 4484 1 snd_seq_oss
    snd_seq 41656 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
    snd_seq_device 4349 3 snd_seq_dummy,snd_seq_oss,snd_seq
    snd_hda_codec 59723 2 snd_hda_codec_realtek,snd_hda_intel
    snd_pcm_oss 33442 0
    snd_mixer_oss 14356 1 snd_pcm_oss
    snd_hwdep 4752 1 snd_hda_codec
    snd_pcm 57767 4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
    snd_timer 15629 3 snd_seq,snd_pcm
    snd 42562 15 snd_hda_codec_realtek,snd_hda_intel,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,snd_hwdep,snd_pcm,snd_timer
    soundcore 5017 1 snd
    snd_page_alloc 5873 2 snd_hda_intel,snd_pcm
    # aplay -L
    null
    Discard all samples (playback) or generate zero samples (capture)
    front:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    Front speakers
    surround40:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    4.0 Surround output to Front and Rear speakers
    surround41:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=Intel,DEV=0
    HDA Intel, ALC883 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=Intel,DEV=0
    HDA Intel, ALC883 Digital
    IEC958 (S/PDIF) Digital Audio Output
    # cat /etc/modprobe.d/sound.conf
    alias snd-card-0 snd-hda-intel
    alias sound-slot-0 snd-hda-intel
    # cat /etc/rc.conf|grep DAEMONS
    # DAEMONS
    DAEMONS=(syslog-ng netfs crond hal openntpd alsa mpd)

    Hey Bong,
    Try this http://bbs.archlinux.org/viewtopic.php?id=69178
    All the best

Maybe you are looking for