[Live-devel] Capturing audio from microphone
Ross Finlayson
finlayson at live.com
Mon Oct 11 14:21:56 PDT 2004
>Now I can see that packets are send on the network, nevertheless I try to
>ear this streamed voice using quicktime player but I don't ear voice only
>"schratch noise"
>what's the problem ??
I don't know, but you haven't told us what "RTPSink" you're using to stream
the audio. If you're not doing any encoding (i.e., compression) on the PCM
audio that you're getting from the "AudioInputDevice", then you will need
to use a "SimpleRTPSink", specifying the "audio/L16" MIME type. *And*
(important!) because the audio samples will be in little-endian order, you
will need to byte-swap them (into big-endian, i.e., 'network' byte order)
before feeding them into the "SimpleRTPSink".
See the source code for the "testWAVAudioStreamer" demo program for an
illustration of how to do this.
Ross Finlayson
LIVE.COM
<http://www.live.com/>
More information about the live-devel
mailing list