Naudio Microphone stream to RTP

Oct 1, 2010 at 10:48 PM


i'm trying to get stream from microphone and send it over udp in rtp format (a-law,8 khz,mono) following the specification RFC3551.

I'm able to get microphone stream using waveIn class and send it to udp stream but the data format is not correct; i think the raw format is something like PCM 16 bit stream but i need a-law format to pass data to a porter device.

Is it possible to convert the waveIn class received bytes from pcm to a-law format  in real time mode ? (i cannot save data to a file but i have to immediately send converted bytes to network) if ?

Did not find sample code...