Sending LAME-encoded MP3 data over a stream

Sriram Shankar <[email protected]>
Newsgroups gmane.comp.audio.mp3.lame
Message-ID <CAASF2+8V7iOSkyb7ME9+v7QYjDnADW5nGoVa67Bpi5SA25jVsg@mail.gmail.com>
Hi,

I am using LAME to encode input pcm samples (16 kHz, 16 bit mono) into MP3.
The MP3 samples are ultimately put into an FLV container and streamed using
GSOAP. My questions:

1. Do the first few bits (32) of raw pcm encoded as MP3 with LAME form the
header? If my understanding is correct, functions like
lame_encode_buffer(...) return an mp3 frame where frame = header + data?

2. If the array returned from the function (of type unsigned char), was
cast into char, the header will be 'lost'?

3. Is there a way to use SOAP services for streaming the MP3 samples over a
stream? The SOAP function I am using is soap_send_raw(...) which uses a
char * pointer to the buffer as an argument.

Some help on these issues would be most welcome.

Thanks,
Sriram.
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.