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.