# Users Replace FMOD Assets in Unity

**URL:** https://qa.fmod.com/t/users-replace-fmod-assets-in-unity/21012
**Category:** Unity
**Created:** [December 20, 2023, 6:34am UTC](https://qa.fmod.com/t/users-replace-fmod-assets-in-unity/21012 "2023-12-20T06:34:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lyndonk9](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@lyndonk9](https://qa.fmod.com/u/lyndonk9)
#### Post date: [December 20, 2023, 6:34am UTC](https://qa.fmod.com/t/users-replace-fmod-assets-in-unity/21012/1 "2023-12-20T06:34:37Z")

</div>

Hello,

I’ve been following an older forum where someone was attempting to create user generated content to be used as an audio source in FMOD. The post can be found here:

> [@General advice on user-friendly process for players to upload audio assets then pipe them through FMOD-powered Unity?](https://qa.fmod.com/t/general-advice-on-user-friendly-process-for-players-to-upload-audio-assets-then-pipe-them-through-fmod-powered-unity/19005):
>
> I’m looking for Unity-specific ways of handling this, and any limitations that may be part of Unity. Say there’s a game with UGC (User-Generated Content), where you can record and even upload sounds from local storage into the game, to play for others. For example, you have a sound of your cat meowing, and you import it into the virtual world so that other players can hear it. In a case like this, the sound originates outside of an FMOD bank, isn’t loaded in at runtime, but FMOD is used to pro…

I’ve been following along and it has been really helpful, however when implementing it myself I am met with a unity error

 ![Screenshot_2023-12-19_at_8.58.39_PM](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/c/c5de6432cf8e185d98436d9ec3a2f8b075e6e219.png)

It seems that unity returns no sound when triggering the playaudiofile() function, even after locating the correct file path to the audio asset within Unity’s asset folder. Been troubleshooting it for a bit and can’t seem to understand why FMOD is having issues.

Would love some guidance! Thank you!

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [December 22, 2023, 3:51am UTC](https://qa.fmod.com/t/users-replace-fmod-assets-in-unity/21012/2 "2023-12-22T03:51:24Z")

</div>

Hi,

That message indicates that no Sound was passed to the programmer sound during the callback. It’s likely that the Core API Sound object you’re creating in the callback is invalid in some way, or that it isn’t being assigned to the `parameterPtr` argument of the callback correctly. I would recommend observing the result returned by your calls to the FMOD API to see whether anything specific is going wrong.

If you are unable to track down the issue, feel free to upload your code (or a stripped down version of it) where you can reproduce the issue here so that I can take a look at it.
