Page 1 of 1

Play wav file with libvlc will lost the begining or end

Posted: 11 Oct 2020 16:04
by smartvoice
I use libvlc to play my simple wav file. i found that when i use libvlc 3.0.2-3.0.4, libvlc will lost the end of the wav. if i use libvlc 3.0.9-3.0.11, libvlc will lost the begining of the wav.

but if i use vlcplayer to play the same wav file. the player plays complete.

what's the difference between the vlcplayer and the libvlc?

i use libvlc and vlcplayer in windows 32bit.

i tried the official delphi sample and get the same result.

for the 3.0.9-3.0.11, it looks like more affacted to the shorter wav files less than 100k.

i provide a sample wav file for test:
https://mega.nz/#!TTYmBZLY!95Jv_6uAMNmF ... UlhguqE6n0

Re: Play wav file with libvlc will lost the begining or end

Posted: 14 Jan 2021 16:58
by smartvoice
Any progress?
I wish libVLC 4.0 may fix this problem.

Re: Play wav file with libvlc will lost the begining or end

Posted: 15 Jan 2021 11:40
by Lotesdelere
You should create a new ticket on the VLC Trac with your above report, the link to your sample file and the link to this thread:
https://trac.videolan.org/vlc/

Re: Play wav file with libvlc will lost the begining or end

Posted: 19 Jan 2021 23:34
by smartvoice
Ok, Thanks Lotesdelere.

This libVLC almost makes me crazy.
When i set the volume to 0, it raised a divide by zero error in windows 10.

Project ProjectAM.exe raised exception class $C000008E with message 'floating point divide by zero at 0x70981a8b'.

Is VLC always so unreliable?

Re: Play wav file with libvlc will lost the begining or end

Posted: 19 Jan 2021 23:35
by smartvoice
:70981a8b ; C:\ProgramData\videolan\plugins\audio_output\libdirectsound_plugin.dll