# Equivalent to Unity Audio Source - Android Build

**URL:** <https://qa.fmod.com/t/equivalent-to-unity-audio-source-android-build/15838>\
**Category:** Unity\
**Tags:** android\
**Created:** [June 3, 2020, 7:43am UTC](https://qa.fmod.com/t/equivalent-to-unity-audio-source-android-build/15838 "2020-06-03T07:43:34Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![MisterIX](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@MisterIX](https://qa.fmod.com/u/MisterIX)\
**Post date:** [June 23, 2020, 5:36pm UTC](https://qa.fmod.com/t/equivalent-to-unity-audio-source-android-build/15838/5 "2020-06-23T17:36:04Z")

</div>

Hi brett,  
thank you very much for your answer. As I work in Unity, I have to code it in C# using the FMOD Core API - C# wrapper (fmod.cs). So first things first, I unfortunatly didn’t find an example folder (also not in the FMOD Studio installation Examples file) to take a look a the dsp\_custom file as recommended…

The only working reference was from PeteDE here in the forum: [https://qa.fmod.com/t/core-api-playing-a-sound/15532](https://qa.fmod.com/t/core-api-playing-a-sound/15532)

So I tried to use this as a role model:

> using System.Collections;  
> using System.Collections.Generic;  
> using UnityEngine;  
> using FMOD;

> public class FMOD\_Test : MonoBehaviour  
> {  
> uint s\_byte = new uint[512];  
> uint version;
> 
> // Start is called before the first frame update  
> void Start()  
> {  
> var coreSystem = FMODUnity.RuntimeManager.CoreSystem;  
> coreSystem.getVersion(out version);

> ```
> UnityEngine.Debug.Log("FMOD Core Version "+version);
> 
> ```
> 
> [//corSystem.createSound](https://corSystem.createSound)(“filename.wav”, MODE.DEFAULT, out sound);
> 
> ```
> Sound sound;
> coreSystem.createSound("Assets/file_example.wav", MODE.DEFAULT, out sound);
> 
> ChannelGroup channelgroup;
> coreSystem.createChannelGroup("master", out channelgroup);
> 
> Channel channel;
> coreSystem.playSound(sound, channelgroup, false, out channel);
> 
> ```
> 
> }

And: it’s working fine so far.

So now, when I add following lines:

> DSP my\_dsp;  
> coreSystem.createDSP(out my\_dsp);

I get an error message saying: There is no argument given that corresponds to the required formal parameter ‘dsp’ of ‘System.createDSP(ref DSP\_DESCRIPTION, out DSP)’

I wanted to proceed approx. like this:

> channel.addDSP(1, my\_dsp);  
> (What value should I set for index?)  
> coreSystem.playDSP(my\_dsp, channelgroup, false, out channel);

---

_[View the full topic](https://qa.fmod.com/t/equivalent-to-unity-audio-source-android-build/15838)._
