[SOLVED] SDL audio works only under "sudo"

I seldom play games, but when I do I always bump into a problem of no sound in SDL lib based games.
There is no sound if I try to run them as a normal user. While "sudo game" (not "# game") runs the game with sound just fine.
My user is in audio group, so what could be the reason for that?
Last edited by tasty_minerals (2012-03-24 07:00:24)

Got it!
I had this in .bashrc
export SDL_AUDIODRIVER="dsp"
I changed it to this
export SDL_AUDIODRIVER=alsa
Now, all is working, hmmm

Similar Messages

  • [solved] Scanner works only under sudo

    arch x86_64 / gnome 3 / Canon Pixma MP230
    scanimage -V
    scanimage (sane-backends) 1.0.24; backend version 1.0.24
    -> is OK
    scanimage -L
    device `v4l:/dev/video0' is a Noname BisonCam, NB Pro virtual device
    device `pixma:04A9175F_315075' is a CANON Canon PIXMA MP230 multi-function peripheral
    then, with
    scanimage --device pixma:04A9175F_315075 --format=tiff > test.tiff
    no work, i must kill de process
    Any Ideas? I will not work withe the Drivers from Canon, to many 32-bit Dependencies.
    Last edited by dino (2015-01-17 17:49:30)

    dino wrote:
    After I 've now got me with the problem to two nights of sleep , and customize sheer and taste of udev rules and directories get a big head , I resign myself.
    I scan about 3-5 times a week , as I can with
    sudo scanimage --device pixma:04A9175F_315075 --format=tiff > test.tiff
    and then
    xsane
    first time live well.
    Currently I'm testing nor the commercial software VueScan ( http://www.hamrick.com/ ), which has so far worked without complaint , just click this without any configuration , and sit back. If this is so , I 'm going to set the professional license for it.
    Thank you for your willingness to help in this matter , but if someone can think what we can revive the thread so happy again ...
    I had similar issues to you and also found that vuescan works fine - my previous investigation of this issue seemed for my system to point to a problem with a scanner plugged into a usb3 port where the same scanner plugged into a computer that only has usb2 worked fine.   I wonder if your scanner is plugged into a usb3 port? You might also find that plugging your scanner into a machine with only usb2 might work - this has been the subject of a bug report in the xsane scanner bug list for quite some time without a resolution yet.
    Last edited by mcloaked (2015-01-17 15:31:20)

  • HDMI audio works only with pavucontrol

    I am having a weird problem with my HDMI audio output.
    I can have sound only if I use pavucontrol to switch the per app output to HDMI. If I make HDMI as my default device, it would not work anymore until I delete .config/pulse and restart gdm. I must also make sure that before I close BOTH the app and pavucontrol, the per app output is switched back to my PCI-E sound card too.
    I tried not to use pulseaudio to select the device, but use mplayer or jack directly (in GNOME or without gdm disabled, which means pulseaudio is not started), HDMI audio does not work at all too.
    I am using a Radeon Evergreen with open source driver. Can anyone tell which part does the bug belong to, or if this is a setting issue?
    Last edited by tom.ty89 (2013-10-19 18:39:56)

    https://bbs.archlinux.org/viewtopic.php?id=157351
    Shame on me.

  • Stereo audio works only in FCE

    I know this has been covered before but I would like some help to get from where I am now, out of the hole I seem to have dug.
    Briefly, VHS video with HiFI stereo audio was converted with a Sony DCR TRV355 camera to DVPAL 720x576. Audio 16Bit 48Khz. Firewire cable plugged into the MAC running FCE4 and captured using 'capture now'. So far so good. I drag the clip to the timeline and the two audio tracks and the video track appear. The three names are all underlined. The two audio tracks are linked (the two arrows point to each other like an hour glass where the two tracks touch). The audio plays in stereo. I do nothing to this file, and quit FCE. Now, if I play that untouched captured file on a MAC or PC, in Quicktime, Windows Media Player, FLV whatever, the audio is mono, not stereo. Possibly only one leg of the stereo pair, or possibly left and right summed to mono, it's not easy to tell.
    So I have two questions really:
    One (not relevant to this problem as I cannot recapture the clip), what do I need to do differently next time to avoid this incompatibiliy?
    Two, how do I get from here to being able to play the .mov file in any player in stereo, without degrading the picture? Thanks in advance.

    ... VHS video with HiFI stereo audio was converted with a Sony DCR TRV355 camera to DVPAL 720x576. Audio 16Bit 48Khz. Firewire cable plugged into the MAC running FCE4 and captured using 'capture now'.
    This should have worked fine.  A few questions -
    Did you use the TRV355 as a converter between your VHS deck and your Mac, or did you record the VHS video to a tape in your TRV355 ... and later use FCE to capture from the TRV355 tape?
    What Easy Setup did you use in FCE when you captured this video?
    Exactly what versions of FCE, OS X and QuickTime are on the Mac you used to capture the video?  Do you have QuickTime7 installed on this Mac?
    Did you experience the "mono problem" playing the captured clip on the same Mac you used to capture the video, or did the problem appear on a different Mac?
    When you experienced the "mono problem" were you playing the captured clip in  QuickTime X or QuickTime 7?
    For what it's worth, I have observed that if I play a video clip in QuickTime X that was captured on a Mac with FCE/QuickTime 7, for some inexplicable reason QT X does not fully recognize all the tracks in the clip.  Mostly it thinks the clips are audio only, no video; but if I play the clip in QT7 it plays fine.

  • [SOLVED] HDMI audio not working on new TV

    I got a new TV and I get no sound through HDMI from my arch htpc.
    However, I don't think the problem is the TV because:
    1) Audio from other hdmi sources works
    2) When i connect the htpc to a monitor through hdmi and restart, the audio works. While still on, if I disconnect the monitor and reconnect the TV, the audio works through hdmi
    It seems that the problem stems from auto-detection of the hdmi. I have also noticed that if i start the htpc unconnected to a display and then try to connect it after it has booted up, i get no video as well. Shouldnt hdmi cables be hot pluggable.
    Any way to write out the auto detected configuration for audio and disable detection? Something like this should solve my problem
    Edit: solution in post #5 bellow
    Last edited by despotic (2013-05-03 04:12:47)

    Solved by adding monitor's EDID in xorg.conf. The steps to fix with an nvidia card are:
    1) Connect device with which audio works (in my case the monitor)
    2) run nvidia-settings and get edid file for the monitor
    3) edit xorg.conf and add the following under the device section:
    Option "ConnectedMonitor" "DFP"
    Option "CustomEDID" "DFP-0:/etc/X11/monitor.edid"
    4) reboot or restart X
    Sound works now through hdmi connected to TV

  • I cannot send video (via airplay) to apple tv. sound (audio music) only does works.

    I have had my whole system working perfectly before, so this is a puzzle to me, unless it was some update?
    When I 'send' audio music only to apple tv from PC it plays perfectly. But when I attempt to send video from itunes on pc, I get error message on apple tv. When I 'send' video OR music from iphone nothing works. When I 'send' video from ipad nothing works (did not test music on ipad)  Also, my "remote" software not connecting either anymore to apple tv. From apple tv side, everything works, connected to itunes and my library and everything works fine.
    I have a single home (local) network with Apple TV connected via ethernet cable. not sure if RIP was helping or hindering but it is off. My iTunes is on PC (ver 11.02.26). On my Apple TV, airplay is ON. Homesharing is on. all devices on same homesharing. I have done updates on everything, reset everything, rebooted everything, kicked everything, unplugged and plugged everything back together again.
    but still no joy...

    No, do not have micro usb cable. if it is a big deal, I can get, although have restored back to factory settings which 'appeared' to be successful. Although did not solve issue

  • My MacBook Pro with Lion 10.7.2, only audio on the headset, and speaker mute. With Windows, the audio works in speaker and headphone jack. What is the problem? What's the solution?

    My MacBook Pro with Lion 10.7.2, only audio on the headset, and speaker mute. With Windows, the audio works in speaker and headphone jack. What is the problem? What's the solution?

    There is probably a red light on inside your headphone port, indicating that the analog/digital switch in there is stuck in the digital position. Insert a headphone plug and wigle it around, especially in the horizontal plane, as you insert and remove it several times. This will usually unstick the switch and restore normal operation. If it doesn't, the machine will need to be repaired.
    This has been a fairly common problem, but in most cases it is easily cured as described above.

  • Working with Outlook 2011 for Mac, my mails are slow and I can work only on-line, when off-line, mail cannot be opened because it is only partially downloaded. How to solve??

    working with Outlook 2011 for Mac, my mails are slow and I can work only on-line, when off-line, mail cannot be opened because it is only partially downloaded. How to solve??

    Try http://www.microsoft.com/mac/support.

  • I can't see any video website like youtube, vimeo, even facebook. My flash player is installed and it's work because I still can see the video in IE, only on Firefox it only audio work, the video is all blank(black), anyone can help me?

    I didn't update or download anything, then today I can't see any video website like youtube, vimeo, even facebook. My flash player is installed and it's work because I still can see the video in IE, only on Firefox it only audio work, the video is all blank(black),
    when I restart my PC again the video can work just first video, then when I see another website video it all black...... (but sound still work)
    anyone can help me?

    Try to disable the hardware acceleration in the Flash Player.
    See:
    * https://support.mozilla.org/kb/Cannot+view+full+screen+Flash+videos
    * http://www.youtube.com/swf_test.html (right-click the player: Settings)
    Flash "Display settings" window:
    * http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I can't play videos (youtube for example) unless it is in full screen mode. The audio works in either, but the video only shows in full screen. Any help would be greatly appreciated.

    I can't play videos (you tube for example) except in full screen mode. The audio works in either, but the video doesn't load or run in the normal you tube web site.
    Any help would be greatly appreciated.
    Thanks
    Also, the error console shows all sorts of different errors. Though, alot of error parsing values.

    Do you have any Mail plug-ins? In particular, do you
    have any plug-ins installed on one computer but not
    the other? In the Finder, go to each of the following
    folders (if they exist). What do you see there?
    /Library/InputManagers/
    Not Found
    /Library/Mail/Bundles/
    Not Found
    ~/Library/InputManagers/
    Smart Crash Reports Folder / Smart CrashReports.bundle
    ~/Library/Mail/Bundles/
    MailRecent.mailbundle
    > I have a number of Mail Rules in
    place which place messages
    of certain topics in specific Smart
    Mailboxes
    This doesn’t make sense to me. You cannot tell a rule
    to move messages to a smart mailbox, only to a normal
    mailbox. Each smart mailbox has its own set of
    conditions that messages must satisfy in order for
    them to appear there.
    OK. I misstated this. I have a number of Smart Mailboxes with their specific rules in which to route certain topics to specify mailboxes. I am trying to not have to create each Smart Mailbox on each computer.
    The problem is that when I am on the road I add contacts, bookmarks, keychain items, contacts into my laptop and vice versa when home. I would just like to have those Sync on both computers. Seems like it should be easy, but it hasn't been.
    I really don't think I have anything "non-standard." A few Smart Mailboxes, a couple of signatures, thats pretty much it.
    Note: For those not
    familiarized with the ~/ notation, it refers
    to the user’s home folder. You can easily locate any
    of the folders referred to in this post by copying
    the folder path here, doing Go > Go to Folder
    in the Finder, and pasting the folder path
    there.

  • Import Video - only audio working

    Hello,
    I have figured out how to get File>Import Video work.
    The audio works, but the video does not. I only get a white
    screen.
    Suggestions or a great tutorial?
    Thanks!

    Hello,
    I have figured out how to get File>Import Video work.
    The audio works, but the video does not. I only get a white
    screen.
    Suggestions or a great tutorial?
    Thanks!

  • My iphone4's mic is not working. I can assure that my iphone4 is not on mute mode. The audio is working only when headset/handsfree plugged in.I tried reset my handset many times already but still nothing got success.what is the remedy to comeout from it.

    My iphone4's mic is not working. I can assure that my iphone4 is not on mute mode. The audio is working only when headset/handsfree plugged in.I tried reset my handset many times already but still nothing got success.what is the remedy to comeout from it.

    Try plugging the headphones in and gently wiggling them around for a few seconds. It may be that the sensor that tells the iPhone that headphones are plugged in has gotten stuck. If this doesn't work, they try a reset (hold down Sleep/Wake and Home all the way until the Apple logo appears on the screen).

  • Headphones only work appropriately under 5.1 setti

    Hey guys,
    Out of nowhere, my headphones will only give sound from both sides on my X-Fi XtremeMusic card when its under 5. speakers. When I change it to headphones, the right sounds good but the left side isn't getting full volume, sort of faint. I thought this was the headphones but the headphones work perfectly under 5. settings.
    Any ideas what the problem could be?

    Did you install anything(software or hardware) or change any system setting lately before this happen?
    Jason

  • When i upload a video only the audio works

    I am uploading a video bumper into Imove and when I do only the audio works and I lose the video. Any suggestions.

    format: H.264, 1920 x 1080, millions AAC, 2 challenls, 4800 HZ
    FPS: 29.97
    Data Size: 4.9 MB
    Data Range: 2,985.31 kbit/s
    Current Size 1264 x 711 pixels

  • In iTMS what is "work only" listed under price?

    Iv come across phrase that I don't understand on the iTMS. It's listed in the price column, but it says "work only" instead of a currency amount. Does anyone know what this means?

    If it doesn't appear in System Profiler then I would be contacting AppleCare and arranging a repair.

Maybe you are looking for

  • Share no longer working without restarting iTunes. Why?

    Hey guys. Once upon a time, I could open a video in QuickTime, select Share > iTunes and the video would appear in my iTunes library automatically after processing. For the past month or two (perhaps since upgrading to Lion), I've found I have to res

  • No Listener service after installing Oracle 10g 2

    Hi, I have finished installing Oracle 10g 2 on a windows 2003 server. But no Listener windows service is not created. Any explanation ? Should I create the manually , How ? Many thanks.

  • Unicode support for Sony Ericson W705

    Hi i would like to view tamil website like www.pudhuvai.com in my W705 phone. Is this possible? if not can you give me any alternate solution. thanks, Mohanakrishnan, Pudhuvai.com

  • What are steps in beaWeblogic to deploy mt webservices?

    Can any body help me to deploy my webservice in Tomcat or weblogic plz. I am new to java.

  • Unable to Download Digital Edition

    I just bought an ebook and need to download Digital Edition to read it, but am unable to download. I clicked on the DOWNLOAD NOW link, but get an error loading the page message : Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Wi