You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I use these code:
`
def create_windows_graphics_capture(item: GraphicsCaptureItem):
# Note: Must create in the same thread (can't use a global) otherwise when ran from LiveSplit it will raise:
# OSError: The application called an interface that was marshalled for a different thread
media_capture = MediaCapture()
async def coroutine():
async_action = media_capture.initialize_async()
if async_action:
await async_action
asyncio.run(coroutine())
if not media_capture.media_capture_settings:
raise OSError("Unable to initialize a Direct3D Device.")
frame_pool = Direct3D11CaptureFramePool.create_free_threaded(
media_capture.media_capture_settings.direct3_d11_device,
DirectXPixelFormat.B8_G8_R8_A8_UINT_NORMALIZED,
1,
item.size)
`
I got an error:
OSError: [WinError -1072845856] No capture devices are available
how can I fix it?
thans a lot
The text was updated successfully, but these errors were encountered:
I'm assuming you are trying to build/modify/run my fork of the python application yourself? Because none of this is part of AutoSplit at the moment.
If you need help with your environment, I suggest hopping on Discord! https://discord.gg/Qcbxv9y
when I use these code:
`
def create_windows_graphics_capture(item: GraphicsCaptureItem):
# Note: Must create in the same thread (can't use a global) otherwise when ran from LiveSplit it will raise:
# OSError: The application called an interface that was marshalled for a different thread
media_capture = MediaCapture()
`
I got an error:
how can I fix it?
thans a lot
The text was updated successfully, but these errors were encountered: