0
0

Is there currently a method for doing this? The Event class has a lot of the same functionality as the Channel and Sound classes (setVolume, setPaused, etc.), but there are many functions that I’d love to have access to that I don’t at the moment. Off the top of my head:

Sound::get3DMinMaxDistance
Sound::getLength
Sound::getLoop*

In my particular case, I mostly care about the “get” functions — I’m not too concerned with setting, simply because our sound designer takes care of that in FMOD Designer.

Is there a way to just get the Sound object that an Event uses (I’m guessing not as an event can contain multiple sound definitions)? Getting the Channel that an Event is playing on would be great, too.

Regardless, could the above functionality be added to the Event class if it isn’t currently accessible some other way?

Thanks!

Jeff M.

  • You must to post comments
0
0

Just a folllow-up for myself and others:

I just found the (I think new?) getProperty and getPropertyByIndex functions in the events. Very nice. This hits most of what I need. However, it would still be nice to get access to the channel (if possible).

Jeff M.

  • You must to post comments
0
0

What name should be used in the getProperty function to get the standard properties rather than the user properties?

From looking at the fdp, I would expect using "mindistance" would get the "3D Min distance" value, but I just get FMOD_ERR_INVALID_PARAM back from getProperty when using that, although using getPropertyByIndex works fine. I’m using v51.

  • You must to post comments
0
0

[quote="crouton":5a21oabh]What name should be used in the getProperty function to get the standard properties rather than the user properties?

From looking at the fdp, I would expect using "mindistance" would get the "3D Min distance" value, but I just get FMOD_ERR_INVALID_PARAM back from getProperty when using that, although using getPropertyByIndex works fine. I’m using v51.[/quote:5a21oabh]
Just noticed that I’ve still got a hack in my code for this, and it still doesn’t work. Are these functions just for User Properties or should something like this work to get an events properties as set in Designer?

[code:5a21oabh]
FMOD::Event* m_pEvent = GetThisValidEventFromSomewhere();
FMOD_RESULT result;
float fValue = 0.0f;
result = m_pEvent->getProperty("mindistance", &fValue);[/code:5a21oabh]

  • You must to post comments
0
0

The standard properties don’t have names so you can’t get them with getProperty() – use getPropertyByIndex() instead. getProperty() is only for user properties.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.