[Live-devel] Modify testWAVAudioStreamer to take input from a Buffer

Ross Finlayson finlayson at live555.com
Thu May 20 18:54:12 PDT 2010


>The "testWAVAudioStreamer.cpp" test program reads from a WAV file.
>How can I modify it so that it takes input from a Buffer instead?

You will need to write your own subclass of "FramedSource" (that 
encapsulates your buffer), and, in particular, implement the 
"doGetNextFrame()" virtual function.  Because you're streaming PCM 
data, you should use "WAVAudioFileSource::doGetNextFrame()" as a 
model for how to implement this.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100520/bac017d9/attachment.html>


More information about the live-devel mailing list