I think I'm on to something here. (I'm now using version 2.0.5+git20121219+r480-0~r44~quantal1, just for your information.) Allow me to explain.
First of all, I have this GNOME Shell extension installed, which might help when debugging this: https://extensions.gnome.org/extension/212 /advanced-volume-mixer/ The extension shows which applications are currently using the sound device. During the time when an application is using the sound device, e.g. a video on YouTube is playing, *and* for a short time after, such as when pressing Pause in the YouTube player, there will be a volume item for that particular application in GNOME Shell's volume menu. (You can try this.) There will be one volume slider per application, as well as the master volume. So now, if I have at least one other application using the audio device, i.e. there is another item in GNOME Shell's volume menu at the time I press the Play button in VLC, then there is *no* initial audio delay in VLC. I repeat, there is *no* audio delay if another application is or very recently was using the audio device. (I guess it takes a while between pausing audio on YouTube and it being unregistered from PulseAudio's list of applications using the audio device.) This is 100 % for me. After pausing the YouTube video and waiting until Chrome's ALSA plugin is removed from the volume menu, then the audio delay is back again in VLC when pressing play. This is also 100 % for me. So the correlation seems very strong. My uneducated guess is that it takes about 2 seconds or something until PulseAudio has "warmed up" if no application is using it previously? Or maybe some weird VLC-PulseAudio buffers have to fill before playing the audio? I'll let you folks be the judge. Anyway, it appears (to me at least) that the bug lies with VLC since none of my other audio-playing applications seem to suffer from this bug. Meaning, when I play a video with VLC for example, there is no audio delay on YouTube if a choose to start a video there. PS: Don't try this with Rhythmbox, as pressing Pause in Rhythmbox never removes the volume item from the volume menu, for some reason. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1069232 Title: Sound lags when opening video files To manage notifications about this bug go to: https://bugs.launchpad.net/pulseaudio/+bug/1069232/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs