Apologies, there is actually a way to retrieve the name.
To retrieve the sound we will need to use a CallBack. More information about Callbacks can be read under Studio API | Callbacks.
Using your event instance you will want to assign it this callback:
Sound Callback
[AOT.MonoPInvokeCallback(typeof(FMOD.Studio.EVENT_CALLBACK))]
static FMOD.RESULT SoundCallback(FMOD.Studio.EVENT_CALLBACK_TYPE type, System.IntPtr instancePtr, System.IntPtr parameterPtr)
{
FMOD.RESULT result;
FMOD.Studio.EventInstance instance = new FMOD.Studio.EventInstance(instancePtr);
switch (type)
{
case FMOD.Studio.EVENT_CALLBACK_TYPE.SOUND_PLAYED:
{
FMOD.Sound sound = new FMOD.Sound(parameterPtr);
result = sound.getName(out string name, 256);
if (result != FMOD.RESULT.OK)
return result;
Debug.Log(name);
break;
}
case FMOD.Studio.EVENT_CALLBACK_TYPE.SOUND_STOPPED:
{
FMOD.Sound sound = new FMOD.Sound(parameterPtr);
result = sound.getName(out string name, 256);
if (result != FMOD.RESULT.OK)
return result;
Debug.Log(name);
break;
}
}
return FMOD.RESULT.OK;
}
Assing the call back like this:
FMOD.RESULT result;
_eventIntstance = FMODUnity.RuntimeManager.CreateInstance(_eventRef);
result = _eventIntstance.setCallback(SoundCallback, FMOD.Studio.EVENT_CALLBACK_TYPE.SOUND_PLAYED | FMOD.Studio.EVENT_CALLBACK_TYPE.SOUND_STOPPED);
if (result != FMOD.RESULT.OK)
{
Debug.Log("Failed to assign Callback with the result: " + result);
}
else
_eventIntstance.start();
Again apologies for the confusion. Hope this helps