Playing raw PCM held in an array with GStreamer

746 Views Asked by At

I am working in C++ with ogg/vorbis

I have an array with raw PCM data decoded from a vorbis file (.ogg). The .ogg file has been decoded using libvorbis using vorbis_synthesis_pcmout. This fills a multidimentional array with the raw PCM for each channel.

I'm sure Gstreamer is capable of reading pure PCM, I have searched for the pluginto but to no avail. I'm sure I am just overlooking something simple here.

2

There are 2 best solutions below

0
On BEST ANSWER

You might be looking for appsrc .

0
On

A PCM file is generally stored in .wav format. SO you can use wavparse plugin to play raw PCM.