Autor Beitrag
Lazarus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Di 11.03.08 22:47 
Hallo,

kann mir sagen, wie ich mit Directshow z.B. ein Wave-File Rendern kann, wenn das Wavefile in einem TMemoryStream geladen ist ??

Vielen Dank schon mal ;-)
Lazarus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Sa 15.03.08 22:37 
Also nochmal mit einem Stückchen Code:

So spiele ich ja normalerweise ein File, welches z.B. auf der Platte ist ab:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
    CoCreateInstance(CLSID_FilterGraph, nil, CLSCTX_INPROC_SERVER, IID_IGraphBuilder, Graph);
    Graph.QueryInterface(IID_IMediaControl, Control);
    Graph.QueryInterface(IID_IBasicAudio, Audio);
    Graph.QueryInterface(IID_IMediaSeeking, MediaSeek);
    Graph.QueryInterface(IID_IMediaEvent, aEvent);
    aEvent.QueryInterface(IID_IMediaEventEx, MediaEvent);
    MediaEvent.SetNotifyFlags(0);
    MediaEvent.SetNotifyWindow(WindowHandle, WM_SfxNotify, Integer(MediaEvent));
    Graph.RenderFile(PWideChar(WideString(FileName)), nil);

Und ich möchte eben statt Graph.Renderfile(.... etwas haben, das etwa sowas macht: <NUR SYMBOLISCH ANZUSEHEN>
ausblenden Delphi-Quelltext
1:
    Graph.RenderFromStream(MemoryStream) ...					


Ich bin für jeden Tip dankbar...

Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt