Skip to content
Discussion options

You must be logged in to vote

Hi,
To fix this issue, I implemented MsgWaitForMultipleObjects to give the
ReadSample method more time to organize it's sample pool with in the OnReadSample function, alternatively you can use the Sleep() method.

See: Example MfAudioClipEx (function TAudioClipClass.OnReadSample)

Although I think you need to implement a callback function from IMFMediaEvent, that reports when a sample is processed, before processing the next one, as usual in a-synchronous mode. I think function IMFMediaEvent.GetStatus(out phrStatus: HRESULT) could do the job.

Right now I'm working on a WASAPI component that should render RAW/WAV formats. (See: Examples\MFComponents\WasApiRenderFile.pas. That is not working …

Replies: 3 comments 34 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by FactoryXCode
Comment options

Ciaran3
Sep 9, 2021
Collaborator Author

You must be logged in to vote
2 replies
@FactoryXCode
Comment options

@Ciaran3
Comment options

Ciaran3 Sep 16, 2021
Collaborator Author

Comment options

Ciaran3
Sep 14, 2021
Collaborator Author

You must be logged in to vote
32 replies
@Ciaran3
Comment options

Ciaran3 Sep 29, 2021
Collaborator Author

@FactoryXCode
Comment options

@FactoryXCode
Comment options

@Ciaran3
Comment options

Ciaran3 Sep 30, 2021
Collaborator Author

@FactoryXCode
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants