'How to generate N frequencies with gstreamer from a stream of amplitudes

I'm working on my first own gstreamer project and I'm trying to get a grasp on it.

So I have a stream of arrays of size N that I generate. This array consists of unsigned 8 bit integers representing the amplitude between 0 and 255. I want to create a soundsrc that takes this data stream and generates an N frequencies overlayed with each frequency having an amplitude depending on the data stream. How do I do this in broad terms?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source