Can someone please explain how the FMOD_GUID struct is computed in System::getDriverInfo()?
In particular, is there a guarantee that the hexadecimal digits making up the ID will always be the same for a particular device?
1. Detect device and get its GUID using getDriverInfo()
2. Unplug / disable device
3. Plug device again and compute GUID again using getDriverInfo() => is it sure that this is the same GUID I got in step 1?
Thanks a lot!
- acgrama asked 8 years ago
Seeing as how there’s no answers, I am led to believe my question either has no answer or it is a stupid question 😀
In the API docs there is no description as to how to GUID is computed when System::getDriverInfo() is called. Perhaps there is some other documentation that explains it?
Thank you very much in advance!
There are no docs explaining how GUID is computed and no code should rely on it being computed in a certain way.
However, you can rely on it being consistent, it should remain the same through a device removal and reattach (it was added for this very reason, as a way of uniquely identifying devices when they are re-attached).
More importantly, will devices have the same GUID after unplugging a device?
step 1: I have device_1 with GUID_A and device_2 with GUID_B
step 2: I unplug device_1 –> will device_2 still have GUID_B?
From my experience it seems that GUID_A is assigned to the first device found, thus device_2 will have GUID_A after step 2.
Is that observation correct?
- heapifyman answered 8 years ago
Please login first to submit.