Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: From COM IStream to concurrent::streams::istream

$
0
0
Hi Steve,
I managed implementing the COM IStream (OutboundAudioStream) where I defined the basic read, write and seek. I am having trouble how to wrap around http_response stream. I looked at the source code and I got a bit lost.

In other words something like:
CComObject<OutboundAudioStream> *pAudioOut = NULL;
if (SUCCEEDED(hr = CComObject<OutboundAudioStream>::CreateInstance(&pAudioOut)))
{
        pVoice->SetOutput(pAudioOut, FALSE);
    pVoice->Speak(text.c_str(), 0, NULL);

        web::http::http_response response(web::http::status_codes::OK);
    response.set_body(?????, L"audio/vnd.wave");
    request.reply(response);
}
Thanks,
Pedro

Viewing all articles
Browse latest Browse all 4845


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>