<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] Modify testWAVAudioStreamer to
take input</title></head><body>
<blockquote type="cite" cite><font size="-1">The
"testWAVAudioStreamer.cpp" test program reads from a WAV
file.<br>
How can I modify it so that it takes input from a Buffer
instead?</font></blockquote>
<div><br></div>
<div>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.</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>