PDA

View Full Version : Lost audio in later revisions


xmltok
2009-04-08, 08:03
I've lost audio somewhere between 17625 and 18272. I'm digging around trying to figure out where it happened, has anyone else noticed this?

I get a Failed to initialize audio device Check your audiosettings messages when I start a video. It goes away as soon as I roll back to 17625. The problem exists in the current SVN.

xmltok
2009-04-08, 08:10
22:09:21 T:1309841728 M:1198276608 DEBUG: Initialize - using alsa device default
22:09:21 T:1309841728 M:1198276608 ERROR: Initialize - pcm_open_lconf, alsa error: -2 - No such file or directory

from debug

xmltok
2009-04-08, 09:12
fix:

$ git diff
diff --git a/xbmc/cores/AudioRenderers/ALSADirectSound.cpp b/xbmc/cores/AudioRenderers/ALSADirectSound.cpp
index 75e9bc8..64eeaff 100644
--- a/xbmc/cores/AudioRenderers/ALSADirectSound.cpp
+++ b/xbmc/cores/AudioRenderers/ALSADirectSound.cpp
@@ -240,8 +240,8 @@ bool CALSADirectSound::Initialize(IAudioCallback* pCallback, int iChannels, unsi
nErr = snd_pcm_hw_params_set_periods_near(m_pPlayHandle, hw_params, &dwNumPackets, NULL);
CHECK_ALSA_RETURN(LOGERROR,"hw_params_set_periods",nErr);

- nErr = snd_pcm_hw_params_get_buffer_size(hw_params, &dwBufferSize);
- CHECK_ALSA_RETURN(LOGERROR,"hw_params_get_buffer_size",nErr);
+// nErr = snd_pcm_hw_params_get_buffer_size(hw_params, &dwBufferSize);
+// CHECK_ALSA_RETURN(LOGERROR,"hw_params_get_buffer_size",nErr);

/* Assign them to the playback handle and free the parameters structure */
nErr = snd_pcm_hw_params(m_pPlayHandle, hw_params);

tslayer
2009-04-08, 09:20
File a trac ticket with complete details please.

This includes full debug logs and any other pertinent information such as ALSA version, etc...

rparenton
2009-05-16, 23:54
I am seeing the same thing and have posted my information in the Trac ticket (http://xbmc.org/trac/ticket/6337)