mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix engine_advanced example.
This commit is contained in:
@@ -238,6 +238,9 @@ int main(int argc, char** argv)
|
||||
ma_device_uninit(&devices[iEngine]);
|
||||
}
|
||||
|
||||
/* The context can only be uninitialized after the devices. */
|
||||
ma_context_uninit(&context);
|
||||
|
||||
/*
|
||||
Do the resource manager last. This way we can guarantee the data callbacks of each device aren't trying to access
|
||||
and data managed by the resource manager.
|
||||
|
||||
Reference in New Issue
Block a user