mmioOpen function is deprecated
It is not deprecated
It is a bug in documentation
You would need a lot of code to replace all what mmioOpen does...
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
When I use mmioOpen, all other mmio methods are working fine on Win 11 latest update.
However mmioOpen is deprecated and I should use CreateFile or CreateFile2 instead that's what the documentation says (https://learn.microsoft.com/en-us/windows/win32/api/mmiscapi/nf-mmiscapi-mmioopen) .
My issue is that creating a wav file by method CreateFile, all other mmio methods like mmioAscend return code 263 (MMIOERR_CANNOTSEEK). What is the proper way to use CreateFile or CreateFile2 to work correctly with mmio?
The code I use is posted here by Rita Han (https://stackoverflow.com/questions/64318206/record-an-audio-stream-with-wasapi)
Thank you.
mmioOpen function is deprecated
It is not deprecated
It is a bug in documentation
You would need a lot of code to replace all what mmioOpen does...
Hello
You can refer to the CaptureSharedEventDriven sample, which also Write the captured wave data to an output file using CreateFile and WriteFile or the ApplicationLoopback sample.
And note that the CaptureSharedEventDriven sample has a flaw after resuming from a breakpoint.