Is it DTS only? I watched a whole bunch of AC3 audio episodes last night (with passthrough, ofcourse) without a problem. AV sync/resample stuff is disabled.
r20720 on that machine.
I'll test later tonight with DTS.
Cheers,
Jonathan
[MAC] Hang on exit after playing movie with DTS audio?
jmarshall
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2009-06-04 23:06
Post: #11
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
phi2039
Team-XBMC Developer Joined: Aug 2008 Reputation: 0 Location: Baltimore, MD |
2009-06-04 23:19
Post: #12
The hang actually occurs in the GUI sounds code. You should be able to work around the problem temporarily by disabling them.
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
WJWNL
Junior Member Posts: 43 Joined: Apr 2009 Reputation: 0 |
2009-06-04 23:29
Post: #13
phi2039 Wrote:The hang actually occurs in the GUI sounds code. You should be able to work around the problem temporarily by disabling them. Can you explain that please? |
| find quote |
phi2039
Team-XBMC Developer Joined: Aug 2008 Reputation: 0 Location: Baltimore, MD |
2009-06-04 23:51
Post: #14
I could, but it is not particularly interesting unless you are going to re-write the GUI sounds code. In short, the GUI sounds code 'waits' for playback to complete before allowing the app to exit. A quirk in CoreAudio causes this code to spin indefinitely, as it never believes the sound finishes. Use of 'passthrough' mode requires that the audio device be 'hogged' by dvdplayer. This invalidates any other CoreAudio clients, including the one used by SDL_mixer, which handles the GUI sounds. This would be simple enough to remedy, however, differences between OSX 10.4 and 10.5 complicate the problem. The complexities of CoreAudio as they relate to passthrough and similar scenarios are not well documented, and many assumptions are made as to how an application will behave. Also, the driver developer is given an inordinate amount of latitude with regard to how clients are handled, which further complicates the problem.
Ultimately, what I will need to resolve this is DATA, so please post a log and a detailed problem description if you are experiencing the same issue. Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
WJWNL
Junior Member Posts: 43 Joined: Apr 2009 Reputation: 0 |
2009-06-05 00:21
Post: #15
I have the same (annoying) problem with the latest SVN build. If I start one movie, the sound is fine, but if I start a second one it says: failed to initialize audio device, check your audio settings.
But with a log: http://pastebin.com/md9853a3 Edit: cranky people may be offended, so an edit.
(This post was last modified: 2009-06-05 01:08 by WJWNL.)
|
| find quote |
phi2039
Team-XBMC Developer Joined: Aug 2008 Reputation: 0 Location: Baltimore, MD |
2009-06-05 00:45
Post: #16
well...I am sorry to hear that this is such an annoying problem. I can certainly understand, since I get annoyed when users post cranky comments while asking for help...
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
WJWNL
Junior Member Posts: 43 Joined: Apr 2009 Reputation: 0 |
2009-06-05 00:54
Post: #17
phi2039 Wrote:well...I am sorry to hear that this is such an annoying problem. I can certainly understand, since I get annoyed when users post cranky comments while asking for help... Cranky? Is this directed to me? In what way is my comment cranky? I only reposted my problem with a log, that is all... To give you developers as much information as possible. |
| find quote |
phi2039
Team-XBMC Developer Joined: Aug 2008 Reputation: 0 Location: Baltimore, MD |
2009-06-05 01:01
Post: #18
WJWNL Wrote:Again: I have the same (annoying) problem with the latest SVN build. If I start one movie, the sound is fine, but if I start a second one it says: failed to initialize audio device, check your audio settings. I'm still looking at the issue. Just try to be considerate of what those reading (and working) may think about what you say. Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
WJWNL
Junior Member Posts: 43 Joined: Apr 2009 Reputation: 0 |
2009-06-05 01:06
Post: #19
phi2039 Wrote:I'm still looking at the issue. Just try to be considerate of what those reading (and working) may think about what you say. That again was because of the post I have on page 1, it is an identical post, but now with a pastebin like you requested. And it is an annoying bug, if you like it or not, I'm not blaming you for the bug do I? Just relax, not everyone is against you. |
| find quote |
aaronjb
Junior Member Posts: 47 Joined: May 2009 Reputation: 0 Location: England |
2009-06-05 01:18
Post: #20
phi2039 Wrote:The hang actually occurs in the GUI sounds code. You should be able to work around the problem temporarily by disabling them. This is the sound of me slapping my own forehead - you're right, the issue of being unable to exit XBMC after playing passthrough DTS is down to the GUI sounds. Disabling them nicely fixed that issue and I can once again exit XBMC cleanly. WJWNL - if that's the issue you're having then the setting is under Configure the System->Configure the Appearance->Navigation Sounds, toggle this to off. Doing this, however, popped up another issue - which I think is the one WJWNL is having (though I didn't check his log yet). After playing the first DTS video, attempting to play it a second time pops up the 'Unable to initialize the audio device' message. Here's a pastebin of the full debug log: http://pastebin.com/f5a611607 The second playback starts at timestamp 00:01:02, and I'm thinking this here is the ultimate breakage (although not necessarily the root cause, of course )Code: 00:01:02 T:2961584128 M:1482252288 ERROR: CCoreAudioHardware::GetDefaultOutputDevice: Unable to identify default output device. Error = 0x00000000 ( ).BTW, ignore the massive spewing of ffmpeg errors on the first playback in the logs - that was me hitting the fast forward button (sorry about that, mea culpa :o ) And just for Jonathan - this particular problem (which I realise is completely independent of my thread title, sorry, bugs the wotsit out of me when people do that to me at work so I apologise!) also happens with non-DTS media - second playback b0rks with the 'Unable to initialize..' message.Pastebin again - this is with 2-channel AC3 audio in an MKV: http://pastebin.com/f43661b43 Second playback attempt starts at 00:11:06 BTW, if I came across as cranky I do apologise - not my intention at all, bugs are a part of life (I've coded plenty myself.. wait.. that's not a thing to boast about is it :o ) - I just want to make sure it's not me doing something boneheaded, and if it isn't, help find the problem and fix it, if possible - if I can do that by providing logs, I will, and if I can find the problem in the code, I'll help out there too ![]() Although me finding anything in the code at gone midnight is looking unlikely, so I'll sign out for the day I think ![]() Thanks muchly! Aaron |
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
![[Image: project_thin_badge.gif]](https://www.ohloh.net/p/xbmc/widgets/project_thin_badge.gif)
)
- this particular problem (which I realise is completely independent of my thread title, sorry, bugs the wotsit out of me when people do that to me at work so I apologise!) also happens with non-DTS media - second playback b0rks with the 'Unable to initialize..' message.
Search
Help