草庐IT

pInputByteStream

全部标签

c++ - 即时生成数据供媒体基金会使用

我正在尝试通过使用内存中流作为源流将动态生成的数据提供给媒体基础源阅读器:InMemoryRandomAccessStream^memstream=refnewInMemoryRandomAccessStream();IRandomAccessStream^pInputStream=(IRandomAccessStream^)memstream;ComPtrpInputByteStream;MFCreateMFByteStreamOnStreamEx((IUnknown*)pInputStream,&pInputByteStream);hr=MFCreateSourceReaderFr