0
0

Hello all,

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?

Example:
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!
–Cristina.

  • You must to post comments
0
0

More importantly, will devices have the same GUID after unplugging a device?

Example:
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?

  • You must to post comments
0
0

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!

  • You must to post comments
0
0

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).

  • You must to post comments
0
0

Thank you Mathew, that guarantee is exactly what we needed to know!
–Cristina.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.