Page 1 of 1

Delay in audio changes using libvlc 3.0 rc5

Posted: 09 Jan 2018 20:56
by mangokm40
My issue is a small delay when making audio changes such as volume, mute, or audio track. The change takes almost a second to
occur. This delay is NOT happening in the vlc rc5 executable. It also doesn't happen with libvlc 2.2.x.

I'm just wondering if anyone else has seen this. It's most annoying when changing the volume 5% at-a-time. With the delay, it
can take a looong time to drop volume 30%. :) As I said, vlc doesn't have this issue and changes volume 5% at-a-time with no delay.

Thanks.

Re: Delay in audio changes using libvlc 3.0 rc5

Posted: 14 Jan 2018 11:09
by Jean-Baptiste Kempf
So, it works in VLC but not in libVLC? (in 3.0-rc5)

Re: Delay in audio changes using libvlc 3.0 rc5

Posted: 17 Jan 2018 20:45
by mangokm40
"So, it works in VLC but not in libVLC? (in 3.0-rc5)"

Correct. To be clear, it still works. It just has a 'delay' that doesn't happen in vlc 3.0-rc5 or in libvlc 2.2.x.

I was just wondering if anyone else had gotten it. My code is the same as with 2.2.x.

Thanks

Re: Delay in audio changes using libvlc 3.0 rc5

Posted: 20 Jan 2018 19:29
by Jean-Baptiste Kempf
Do you force a special audio output?

Re: Delay in audio changes using libvlc 3.0 rc5

Posted: 22 Jan 2018 15:41
by mangokm40
Do you force a special audio output?

I don't know how to do that. :)

I don't think I'm providing enough information for anyone to help me. I'll just create a simple project. If the problem happens there, I will post the code.

I found it perplexing because my code didn't change. I just linked libvlc 3.0 instead of 2.2.8.

When I have the code sample, I'll post it here.

Re: Delay in audio changes using libvlc 3.0 rc5

Posted: 22 Jan 2018 17:35
by Jean-Baptiste Kempf
OK.

Re: Delay in audio changes using libvlc 3.0 rc5

Posted: 23 Jan 2018 21:20
by mangokm40
I made a simple project and DID NOT get the weird delay. Sorry to have wasted your time.

My best guess is a problem with event handling, since I did none in the simple project. Perhaps there's some updates in the event firing in version 3.0 and I have to update my handlers.

Thanks (again) for your time.

Re: Delay in audio changes using libvlc 3.0 rc5

Posted: 23 Jan 2018 23:09
by Jean-Baptiste Kempf
OK.

Re: Delay in audio changes using libvlc 3.0 rc5

Posted: 14 Feb 2018 17:32
by mangokm40
Doubt this will be useful to anyone, but....

The delay in 3.0 happens when I have "caching" command-line settings. I just tested with/without "--file-caching=3000" and that makes the delay occur when changing audio values. Note this doesn't happen in 2.2.x. In fact, I had forgotten that value was left from a test last year. :)

Thanks for your time, Mr. Kempf.