Failed to Initialize - Issue with SPDIF/Optical
#1
Hi Guys,

My first crack at stepping away from the Xbox and putting XBMC on a Windows machine.

I'm running the latest Babylon 9.04.1 (repack2), R206672, on a Windows XP SP3 machine, Dual Proc Xeon 3.0Ghz, 2GB Ram, Turtle Beach Riviera Audio, Hauppage PVR 250 card for the remote/IR.

I've got damn near everything working (outside of needing to tweak the remote quite a bit, and find some quiet fans for the server), but I am experiencing an issue similar to what is explained here: http://forum.xbmc.org/showthread.php?tid...lize+audio

Outside of XBMC, I have audio going through the optical cable and coming out of the receiver.

When I use XBMC with Digital Audio selected and Dolby support checked (Receiver doesn't support DTS, so this isn't checked), non AC3/5.1 sources play fine, but launching a DVD image for example, causes XBMC to pop up with "Failed to Initialize, Check Audio Setting".

The Turtle Beach Control Panel doesn't have much to tweak, I've tried changing the sampling rate from 44.1 to 48 and back, doesn't help.

If I change XBMC's audio setting to be Analog, everything works fine - but of course, plays in stereo.

Here's a debug of starting XBMC, playing a DVD image, having the audio fail, switching to analog and having it work, then going back to digital:

http://paste2.org/p/344196

It would seem that the relevant part is here:

20:31:09 T:3824 M:1754767360 NOTICE: running thread: CDVDPlayerAudio:Tonguerocess()
20:31:09 T:3820 M:1754767360 INFO: CDVDInputStreamNavigator::GetVideoAspectRatio - Aspect wanted: 3, Scale permissions: 2
20:31:09 T:3824 M:1754767360 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(-44688.888889, 1)
20:31:09 T:3820 M:1754767360 NOTICE: Creating video codec with codec id: 2
20:31:09 T:3820 M:1754755072 DEBUG: FactoryCodec - Video: libmpeg2 - Opening
20:31:09 T:3820 M:1754755072 DEBUG: Win32DllLoader::Load(special://xbmc/system/players/dvdplayer/libmpeg2.dll)
20:31:09 T:3820 M:1754693632 DEBUG: FactoryCodec - Video: libmpeg2 - Opened
20:31:09 T:3820 M:1754693632 NOTICE: Creating video thread
20:31:09 T:3828 M:1754685440 DEBUG: thread start, auto delete: 0
20:31:09 T:3824 M:1754673152 DEBUG: CDVDAudioCodecPassthrough:TonguearseFrame - source flags changed flags:17 sr:48000 br:384000
20:31:09 T:3824 M:1754673152 NOTICE: Creating audio device with codec id: 86019, channels: 2, sample rate: 48000, pass-through
20:31:09 T:3824 M:1754570752 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: Primary Sound Driver
20:31:09 T:3824 M:1754632192 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: Turtle Beach Riviera Wave
20:31:09 T:3824 M:1754632192 DEBUG: CAudioContext::SetActiveDevice - selecting Turtle Beach Riviera Wave as output devices
20:31:09 T:3828 M:1754554368 DEBUG: Win32DllLoader::Load(special://xbmc/system/players/dvdplayer/swscale-0.6.1.dll)
20:31:09 T:3828 M:1754517504 DEBUG: LoadLibraryA('avutil-49.dll')
20:31:09 T:3828 M:1754517504 DEBUG: LoadLibrary('avutil-49.dll') returning: 04CA7918
20:31:09 T:3828 M:1754509312 NOTICE: running thread: video_thread
20:31:09 T:3828 M:1754509312 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_DELAY(11311.111111)
20:31:09 T:3824 M:1754476544 DEBUG: CWin32DirectSound::Initialize: Packet Size = 12384. Avg Bytes Per Second = 192000.
20:31:09 T:3824 M:1754726400 DEBUG: CWin32DirectSound::Initialize: Couldn't create secondary buffer (DSERR_UNSUPPORTED). Trying without LOCHARDWARE.
20:31:09 T:3824 M:1754726400 DEBUG: CWin32DirectSound::Initialize: Couldn't create secondary buffer (DSERR_INVALIDPARAM). Trying without CTRLVOLUME.
20:31:09 T:3828 M:1754537984 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(-33377.777778, 0)
20:31:09 T:3824 M:1754718208 ERROR: CWin32DirectSound::Initialize: cannot create secondary buffer (DSERR_INVALIDPARAM)
20:31:09 T:3824 M:1754607616 ERROR: Creating a Null Audio Renderer, Check your audio settings as this should not happen
20:31:09 T:3824 M:1753665536 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: Primary Sound Driver
20:31:09 T:3824 M:1753657344 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: Turtle Beach Riviera Wave
20:31:09 T:3824 M:1753657344 DEBUG: CAudioContext::SetActiveDevice - selecting Turtle Beach Riviera Wave as output devices
20:31:09 T:3820 M:1753640960 NOTICE: Opening Subtitle stream: 7 source: 256
20:31:09 T:3820 M:1753628672 DEBUG: CDVDPlayer:TonguerocessSubData: Got complete SPU packet
20:31:09 T:3824 M:1752895488 DEBUG: CDVDPlayerAudio:: Discontinuty - was:5311.111111, should be:-12688.886683, error:-17999.997795
20:31:09 T:3824 M:1752895488 WARNING: CDVDMessageQueue(audio)::Get - retrieved last data packet of queue

Any help from the group in troubleshooting would be really appreciated. The earlier post I reference above, and others I tracked down by searching ended up yielding no solutions.

Thanks.
Reply
#2
Hey Guys - just bumping this...anyone have any insight or further troubleshooting? Has anyone on here managed to get 5.1 optical working with the Turtle Beach card? Could this be a hardware incompatibility with XBMC?
Reply
#3
In case anyone else has this issue - see this thread for the solution to fix it:

http://forum.xbmc.org/showthread.php?tid=55727
Reply

Logout Mark Read Team Forum Stats Members Help
Failed to Initialize - Issue with SPDIF/Optical0