# DSP Time for FMOD Unity

**URL:** <https://qa.fmod.com/t/dsp-time-for-fmod-unity/16038>\
**Category:** Unity\
**Created:** [August 4, 2020, 8:09am UTC](https://qa.fmod.com/t/dsp-time-for-fmod-unity/16038 "2020-08-04T08:09:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackeel](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@blackeel](https://qa.fmod.com/u/blackeel)\
**Post date:** [August 4, 2020, 8:09am UTC](https://qa.fmod.com/t/dsp-time-for-fmod-unity/16038/1 "2020-08-04T08:09:49Z")

</div>

How to apply dspTime in FMOD Unity similiar to this , AudioSettings.dspTime ?

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [August 5, 2020, 1:12am UTC](https://qa.fmod.com/t/dsp-time-for-fmod-unity/16038/2 "2020-08-05T01:12:07Z")

</div>

If you’re looking to query the DSP clock for the System you’ll need to use a few APIs to get to it as it’s stored on the master channel group within the Core System.

- [FMODUnity.RuntimeManager.CoreSystem](https://fmod.com/resources/documentation-unity?version=2.1&page=api-runtimemanager.html#coresystem)
- [FMOD.System.getMasterChannelGroup](https://fmod.com/resources/documentation-api?version=2.1&page=core-api-system.html#system_getmasterchannelgroup)
- [FMOD.ChannelGroup.getDSPClock](https://fmod.com/resources/documentation-api?version=2.1&page=core-api-channelcontrol.html#channelcontrol_getdspclock)

Fetching the clock value will get you a number of samples, if you need time you’ll need to divide by the System sample rate, which you can get from the Core System also.

- [FMODUnity.RuntimeManager.CoreSystem](https://fmod.com/resources/documentation-unity?version=2.1&page=api-runtimemanager.html#coresystem)
- [FMOD.System.getSoftwareFormat](https://fmod.com/resources/documentation-api?version=2.1&page=core-api-system.html#system_getsoftwareformat)
