Audio Callback question

This forum is about all development around libVLC.
VRuss
New Cone
New Cone
Posts: 1
Joined: 01 Dec 2016 22:16

Audio Callback question

Postby VRuss » 01 Dec 2016 23:13

I'm implementing a player in c# using libvlc. I've got the first part done, initializing libvlc, loading a clip and playing it, video rendered to the main form and audio coming out the default endpoint. But I need to be able to get the audio samples and eventually the video samples, read and maybe modify them, then output them back to the form (video) and audio hardware. So I've implemented the libvlc_audio_set_callbacks with just the "play" callback assigned. The callback is being fired, but the samples parameter is always null. Count and pts have values and they make sense. I suspect I'm doing something wrong, but have no idea where to look. The signature of the callback is: private unsafe void AudPlayCallback(void* data, void* samples, uint count, long pts). Any help is appreciated.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Audio Callback question

Postby Jean-Baptiste Kempf » 06 Dec 2016 02:22

Look at the logs.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 19 guests