Page 1 of 1

Streaming to Memory (using p_audio_data)

Posted: 03 Apr 2015 04:52
by CaKlassen
Hey everyone,

I've been using LibVLC for the purposes of streaming to memory in order to send PCM data through a UDP socket. This has worked fine until the point that I realized I needed to determine inside the handleStream callback which socket I needed to send a particular chunk of data to.

I've been following this tutorial:

https://wiki.videolan.org/Stream_to_mem ... _tutorial/

From what I can tell, the tutorial implies that I can use the p_audio_data parameter to pass an object into the callback for use. However, there are no resources anywhere to aid me in understanding how this actually works.

Any help figuring out this parameter would be greatly appreciated!