Frodo seems to be hogging all the audio
#16
Or better yet add implementations of those functions to AESinkAlsa.h and .cpp
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon  AVR-3808CI  - Denon DVD-5900 Universal Player  - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray  - X-Box 360  - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
Reply
#17
(2012-12-16, 05:10)DDDamian Wrote: in AESink.h

Code:
/*
    Requests sink to prepare itself for a suspend state
    @return false if sink cannot be suspended
  */
  virtual bool SoftSuspend() {return false;};

  /*
    Notify sink to prepare to resume processing after suspend state
    @return false if sink must be reinitialized
  */
  virtual bool SoftResume() {return false;};

change returns to true - expect issues Wink

i'll play around with it
Reply
#18
FYI

2032 (GH issue)
2074 (GH issue)
http://forum.xbmc.org/showthread.php?tid=147938
http://forum.xbmc.org/showthread.php?tid=150963
http://forum.xbmc.org/showthread.php?tid=148428
http://forum.xbmc.org/showthread.php?tid=136140
http://forum.xbmc.org/showthread.php?tid=150791
http://forum.xbmc.org/showthread.php?pid=1266056

I've openend ticket for listing dmix devices which would be a workaround for these issues.
http://trac.xbmc.org/ticket/13966

Let's hope someone finds the time to fix it. I'm still searching for it, time that is.
Reply
#19
Edit: oops DP
Reply
#20
(2012-12-16, 05:10)DDDamian Wrote: in AESink.h

Code:
/*
    Requests sink to prepare itself for a suspend state
    @return false if sink cannot be suspended
  */
  virtual bool SoftSuspend() {return false;};

  /*
    Notify sink to prepare to resume processing after suspend state
    @return false if sink must be reinitialized
  */
  virtual bool SoftResume() {return false;};

change returns to true - expect issues Wink

Tried this, but doesn't help. alsa is still always active and don't let my soundbar going to sleep....
Any other suggestions? Perhaps is need to build an old git version, which is not the preferred solution.
Reply
#21
This issue is causing problems for me too as I can't launch emulators with sound anymore (mednafen) from Advanced Launcher. I tried using pulseaudio but it results in 'no passthrough devices found' via HDMI to my receiver....and I had still had the audio hogging issue. The only fix I can think of now is to write a wrapper script that completely kills XMBC when I launch an app, but that hack seems a bit extreme.
Reply
#22
I figured out a way to get emulators to have sound through advanced launcher. Its not pretty but it works. It restarts xbmc and waits just long enough so that it releases the audio and then stops xbmc, starts the emulator, and then when your done emulating it reopens xbmc. Make a text file and insert this

Code:
#!/bin/bash
killall -9 xbmc.bin
sleep 0.5
killall -STOP xbmc.bin
/usr/local/bin/mednafen -fs 1 "$1"
killall -CONT xbmc.bin

Make sure your path to mednafen is correct. and add and different perameters you have
name the file "mednafen-launcher.sh" or whatever you want.
I just put it in ~/xbmc/.xbmc/scripts/
then give it permissions
Code:
chmod +x mednafen-launcher.sh
then open advanced launcher settings and change the emulator path to this script
also make sure you have your paremeters taken out of the settings and just use "%ROM%" by itself since we put the parameters in the script.

this also works with any other emulator just change the path and the parameters in the script
Reply
#23
https://github.com/xbmc/xbmc/pull/2152
Reply
#24
(2013-02-06, 00:00)wsnipex Wrote: https://github.com/xbmc/xbmc/pull/2152

Sssssh dont tell anyone Wink
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#25
(2013-02-06, 00:00)wsnipex Wrote: https://github.com/xbmc/xbmc/pull/2152

thanks for the hint. it's working well.

here you will find packages for ubuntu 12.10 for xbmc 12 (frodo) with that changes included: https://launchpad.net/~notz/+archive/ppa
Reply
#26
^^ we do not support any breakage by 3rd party builds Smile
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#27
And it will break. The above patches still have a bug - that is the reason they did not have pushed yet. Whatever you do - don't press Pause - will fix it tomorrow.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#28
As it is a long time now and everything is, here is a short sequence, that solves a whole lot of problems, when starting external apps:

Code:
xbmc.executebuiltin("PlayerControl(Stop)")
xbmc.enableNavSounds(False)
xbmc.audioSuspend()

// start your application here

xbmc.audioResume()
xbmc.enableNavSounds(True)

This will suspend xbmc's internal audio engine and resume it afterwards.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply

Logout Mark Read Team Forum Stats Members Help
Frodo seems to be hogging all the audio0