# Playing events as vibrations on PS5 in Unity

**URL:** <https://qa.fmod.com/t/playing-events-as-vibrations-on-ps5-in-unity/18824>\
**Category:** Unity\
**Created:** [May 31, 2022, 3:01pm UTC](https://qa.fmod.com/t/playing-events-as-vibrations-on-ps5-in-unity/18824 "2022-05-31T15:01:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErikIllusionLabs](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@ErikIllusionLabs](https://qa.fmod.com/u/ErikIllusionLabs)\
**Post date:** [May 31, 2022, 3:01pm UTC](https://qa.fmod.com/t/playing-events-as-vibrations-on-ps5-in-unity/18824/1 "2022-05-31T15:01:57Z")

</div>

Hi,  
I´m trying to play vibrations on a DualSense controller on a PS5 in a Unity project.

[https://www.fmod.com/resources/documentation-studio?version=2.02&page=mixing.html#port-buses](https://www.fmod.com/resources/documentation-studio?version=2.02&page=mixing.html#port-buses)  
As the documentation above says, you need to set the port indices, but I haven´t been able to find what they´re supposed be. The FMOD Core API Reference doesn´t have a PS5 platform specific section as the doc mentions. (Perhaps only available for Sony approved developers. In that case how do I go about accessing it? Or are they just supposed to be 0 for first controller etc.?)

I´m trying to call: FMODUnity.RuntimeManager.CoreSystem.attachChannelGroupToPort(FMOD.PORT\_TYPE.VIBRATION, 0, group));

It returns ERR\_OUTPUT\_DRIVERCALL and prints the following error to the log:  
[FMOD] AudioOut\_AcquireUser : [REDACTED PS FUNCTION] returned 80268010.

This is also printed at startup and might be relevant:  
[FMOD] AudioOut\_Init : [REDACTED PS FUNCTION] already initialized.

---

<div class="post-metadata">

**Author:** ![Andrew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/andrew/32/261_2.png) [@Andrew](https://qa.fmod.com/u/Andrew)\
**Post date:** [May 31, 2022, 10:58pm UTC](https://qa.fmod.com/t/playing-events-as-vibrations-on-ps5-in-unity/18824/2 "2022-05-31T22:58:23Z")

</div>

You’ll definitely need to arrange FMOD PS5 access if you want to build for PS5. After you do that, you’ll also get access to the PS5 subforum which is perfect for questions like this. Please email [sales@fmod.com](mailto:sales@fmod.com) to arrange FMOD PS5 access.

---

<div class="post-metadata">

**Author:** ![ErikIllusionLabs](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@ErikIllusionLabs](https://qa.fmod.com/u/ErikIllusionLabs)\
**Post date:** [June 1, 2022, 7:19am UTC](https://qa.fmod.com/t/playing-events-as-vibrations-on-ps5-in-unity/18824/3 "2022-06-01T07:19:17Z")

</div>

Thank you. I´ll do that.
