Mix Microphone and Sound to raw pcm stream

Hello
How can I mix the signal from the microphone and audio sound to get a raw pсm stream at the output.