Edit: Sorry, seems this is a known issue discussed in this thread:
viewtopic.php?f=14&t=45593&p=144192&hilit=pdif#p144192
I thought it was an unrelated issue when I first checked the thread, sorry for that, but perhaps this helps devs somewhat anyway.
---
I have a similar issue, and changing to waveoutput did help me as so far that instead of uncomprehensible laggy sound I now have choppy sound
I've been using VLC for a couple of years and it's worked great. Now I have built a new computer though, and something isn't working like it used to. It could be some setting which I did on my old system which I've now forgotten about (I know I had some issues when setting everything up back then, but I think it was something silly simple like not using S/PDIF at all). Anyway, the things that have changed are these:
* New soundcard (Realtek HD Audio integrated on Asus P5K Pro)
* New optical cable, RCA instead of TOS Link (due to different sound card)
* Vista instead of XP
This works:
* Stereo sound
* Realtek test audio (DTS, DD, WMA) all output true surrund which the reciever identifies correctly
I haven't installed any strange codecs except for AC3Filter which didn't help (is it used at all by VLC? if not I can exclude this from my troubbleshooting leaving me one less thing to worry about). I haven't gotting it working in any other player (have only tried WMP and it didn't have the codecs it needed).
wave log:
main debug: control type=1
a52 debug: emulated sync word (no sync on following frame)
main warning: computed PTS is out of range (1429000), clearing out
main warning: PTS is out of range (1429000), dropping buffer
main warning: output PTS is out of range (1429000), clearing out
main debug: audio output is starving (278000), playing silence
main debug: control type=1
Standard log:
main debug: control type=1
a52 debug: emulated sync word (no sync on following frame)
main warning: computed PTS is out of range (2710000), clearing out
main warning: PTS is out of range (2710000), dropping buffer
main warning: output PTS is out of range (2710000), clearing out
main debug: audio output is starving (202084), playing silence
main debug: audio output is too slow (-242000), trashing 32000us
main debug: audio output is too slow (-306000), trashing 32000us
main debug: audio output is too slow (-151000), trashing 32000us
main debug: audio output is too slow (-183000), trashing 32000us
main debug: audio output is too slow (-215000), trashing 32000us
main debug: audio output is too slow (-247000), trashing 32000us
main debug: audio output is too slow (-279000), trashing 32000us
main debug: audio output is too slow (452000), trashing 32000us
main debug: audio output is too slow (420000), trashing 32000us
main debug: audio output is too slow (388000), trashing 32000us
main debug: audio output is too slow (356000), trashing 32000us
main debug: audio output is too slow (324000), trashing 32000us
main debug: audio output is too slow (292000), trashing 32000us
main debug: audio output is too slow (260000), trashing 32000us
main debug: audio output is too slow (228000), trashing 32000us
main debug: audio output is too slow (196000), trashing 32000us
main debug: audio output is too slow (164000), trashing 32000us
main debug: audio output is too slow (132000), trashing 32000us
main debug: audio output is too slow (100000), trashing 32000us
main debug: audio output is too slow (68000), trashing 32000us
main debug: audio output is too slow (4000), trashing 32000us
main debug: audio output is too slow (-92000), trashing 32000us
main debug: audio output is too slow (-156000), trashing 32000us
main debug: audio output is too slow (-252000), trashing 32000us
main debug: audio output is too slow (-144000), trashing 32000us
main debug: audio output is too slow (-176000), trashing 32000us
main debug: audio output is too slow (-208000), trashing 32000us
main debug: audio output is too slow (-240000), trashing 32000us
main debug: audio output is too slow (-272000), trashing 32000us
main debug: audio output is too slow (-304000), trashing 32000us
main debug: audio output is too slow (-164000), trashing 32000us
main debug: audio output is too slow (-196000), trashing 32000us
main debug: audio output is too slow (-228000), trashing 32000us
main debug: audio output is too slow (-260000), trashing 32000us
main debug: audio output is too slow (-292000), trashing 32000us
main debug: control type=1
main debug: audio output is too slow (49000), trashing 32000us
main debug: audio output is too slow (-47000), trashing 32000us
main debug: audio output is too slow (-143000), trashing 32000us
main debug: audio output is too slow (-207000), trashing 32000us
main debug: audio output is too slow (-303000), trashing 32000us
wave with "Use 32-bit float" unticked:
main debug: control type=1
a52 debug: emulated sync word (no sync on following frame)
main warning: computed PTS is out of range (2326000), clearing out
main warning: PTS is out of range (2326000), dropping buffer
main warning: output PTS is out of range (2326000), clearing out
main debug: audio output is starving (320000), playing silence
main error: picture 014EFFF8 refcount is -1
main warning: late picture skipped (17000)