Skip to content
Browse files

[osx] increase audio device startup and see if this fixes loss of aud…

…io rendering
  • Loading branch information...
1 parent 36528af commit 9fd1c5adab617d118cd3734b8dcca7f8addc43f5 @davilla davilla committed Jan 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 xbmc/cores/AudioRenderers/CoreAudioRenderer.cpp
View
5 xbmc/cores/AudioRenderers/CoreAudioRenderer.cpp
@@ -36,6 +36,7 @@
#include "utils/log.h"
#include "utils/TimeUtils.h"
+#define VERBOSE_DEBUG 1
const AudioChannelLabel g_LabelMap[] =
{
@@ -552,14 +553,14 @@ bool CCoreAudioRenderer::Initialize(IAudioCallback* pCallback, const CStdString&
"No suitable AC3 output format found. Attempting DD-Wav.");
configured = InitializePCMEncoded(m_init_state.uiSamplesPerSec);
// TODO: wait for audio device startup
- Sleep(100);
+ Sleep(250);
}
else
{
// Standard PCM data
configured = InitializePCM(m_init_state.iChannels, m_init_state.uiSamplesPerSec, m_init_state.uiBitsPerSample, m_init_state.channelMap);
// TODO: wait for audio device startup
- Sleep(100);
+ Sleep(250);
}
// No suitable output format was able to be configured

0 comments on commit 9fd1c5a

Please sign in to comment.
Something went wrong with that request. Please try again.