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.