[LIVE] Audio locked for other softwares - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: [LIVE] Audio locked for other softwares (/showthread.php?tid=104019) |
[LIVE] Audio locked for other softwares - coercity - 2011-06-22 Hi, I'm a new xbmc live user ( coming from win 7) and really happy with it. I've been trying to install other softwares I used to use with windows. I tried sdlmame and had no sound , no big deal. Now I try to have a working SqueezeSlave installation and have no sound as XBMC seems to lock the Audio Device or , when I first start SqueezeSlave, XBMC can not initialize the audio device. Is there a way to make this work ? TIA Same problem - k3ilbasa - 2011-06-22 I'm trying to get the zsnes emulator working, and I am getting no sound. If I kill X and run zsnes in the terminal, I can get sound. When I start X back up, xbmc has no sound, but zsnes through the advanced launcher does have sound. I think our problems are related somehow. I'm using a revo 3700 with hdmi running straight to my tv for sound. I've tried these things so far, they haven't worked for me, but maybe they will for you. -sudo apt-get install libsdl1.2debian-all (or you can try -alsa, -sdl, -edl) -in the .asoundrc file in your *youruser*/.xbmc folder, put this line defaults.pcm.device 3 (for me it was 3, try running aplay -l and find your active device number) Hope this helps some, try to post if you find anything that may be helpful. - coercity - 2011-06-22 thanks, installing libsdl didn't change anything and I don't have a .asoundrc file. I've also seen this post but I don't have OSS installed. Asoundrc - k3ilbasa - 2011-06-22 if you dont have a .asoundrc file then you should create one, they aren't there by default because they aren't necessary for every install. - coercity - 2011-06-22 doesn't work with .asoundrc file neither. - coercity - 2011-06-22 there's nothing that works , as soon as squeezeslave runs, xbmc fails to initialize the audio device. Got it to share the device. - k3ilbasa - 2011-06-26 I was able to get my xbmc to 'share' the audio device. use Code: aplay -l In my asound.conf file (/etc/asound.conf) I have this: Code: pcm.!default { type plug; I found the information Here and just had to adapt it slightly. - coercity - 2011-06-26 thank you ! that did work as expected ! - bossanova808 - 2012-02-08 Not to bump an old thread, but I am using the above (post 7) in my asound.conf (on Openelec, Shuttle XS35GT with plughw 1,7) - I set my xbmc outputs to dmix0 and all seems to work well, except this seems to break files with TrueHD (which get mapped down to DTS core) - all my other files seem ok, but these give me a message that xbmc failed to open audio device. My asound.conf was previously this (with xbmc outputs bothset to custom plughw:1,7), and it works for ALL files (but wouldn't let me share the audio device with SqueezeSlave) - any idea how to merge the two to get shared device AND TrueHD working?? Code: # asound.conf for Shuttle XS35GT RE: [LIVE] Audio locked for other softwares - KeithLM - 2012-05-29 I based an asound.conf off of k3ilbasa's example above and have this working fairly well. I'm using the optical output on a Zotac HD-ID11 and I changed the hardware device, of course, and then passed the dmix device to squeezeslave. With that I can switch between the two apps without having to kill either one. Pausing squeezeslave works well enough to free the device for XBMC. I'm finding that it's working exactly as I need it to. |