# FMOD Unity playSound

**URL:** <https://qa.fmod.com/t/fmod-unity-playsound/15549>\
**Category:** Unity\
**Created:** [March 16, 2020, 9:19pm UTC](https://qa.fmod.com/t/fmod-unity-playsound/15549 "2020-03-16T21:19:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kidara](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@Kidara](https://qa.fmod.com/u/Kidara)\
**Post date:** [March 16, 2020, 9:19pm UTC](https://qa.fmod.com/t/fmod-unity-playsound/15549/1 "2020-03-16T21:19:52Z")

</div>

Hi everyone,

I’m new with FMOD and I’m trying to do stuff with low level API. In particular I want to create a simple sinusoidal signal to play with FMOD.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/e/e0d9db6336d3d4a5213d542bc897b216e0918d17.png)

This is my code. I tested it with Unity AudioClip and it works well, but when it come to FMOD I don’t know how to make it works. FMOD listener is set in scene (in fact events work correctly).

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![Kidara](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@Kidara](https://qa.fmod.com/u/Kidara)\
**Post date:** [March 16, 2020, 9:20pm UTC](https://qa.fmod.com/t/fmod-unity-playsound/15549/2 "2020-03-16T21:20:33Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/5/5effd133d7bdb483e4baa27faa51ff4b30097f2b.png)

This is my CreateSound function if it can be useful in some way. I’ve only took the signal and converted into byte array to pass it to FMOD playSound function.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [March 22, 2020, 10:52pm UTC](https://qa.fmod.com/t/fmod-unity-playsound/15549/3 "2020-03-22T22:52:23Z")

</div>

FMOD functions will return an `FMOD.RESULT`, checking these is a good place to start when debugging.
