# Help for complete beginner with C#

**URL:** https://qa.fmod.com/t/help-for-complete-beginner-with-c/16541
**Category:** Unity
**Created:** [December 10, 2020, 7:07pm UTC](https://qa.fmod.com/t/help-for-complete-beginner-with-c/16541 "2020-12-10T19:07:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![123qwe](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/123qwe/32/1697_2.png) [@123qwe](https://qa.fmod.com/u/123qwe)
#### Post date: [December 10, 2020, 7:07pm UTC](https://qa.fmod.com/t/help-for-complete-beginner-with-c/16541/1 "2020-12-10T19:07:31Z")

</div>

Hello, I am looking for some help, I have been learning FMOD and so far so good the GUI is fine and have it up and running and I am able to use it in Unity when using the emitters, my issue is not knowing how to start with C# calling sounds and manipulating them, I can not find a very basic tutorial on this, would anyone know where I could get one. Something like; the very first line of script to play a sound and then stop it?

Thanks in advance

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [December 13, 2020, 10:49pm UTC](https://qa.fmod.com/t/help-for-complete-beginner-with-c/16541/2 "2020-12-13T22:49:56Z")

</div>

Have you looked at the FMOD API documentation? The [Studio API Guide](https://www.fmod.com/resources/documentation-api?version=2.1&page=studio-guide.html) contains information on how to perfom basic tasks such as what you describe, with links to the [relevant syntax](https://www.fmod.com/resources/documentation-api?version=2.1&page=studio-api-eventinstance.html#studio_eventinstance_start).

---

<div class="post-metadata">

### Author: ![bubblehead](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/bubblehead/32/1783_2.png) [@bubblehead](https://qa.fmod.com/u/bubblehead)
#### Post date: [December 17, 2020, 9:47am UTC](https://qa.fmod.com/t/help-for-complete-beginner-with-c/16541/3 "2020-12-17T09:47:03Z")

</div>

Hi 123qwe,

The best resource I could find was a YouTube channel from [ScottGameSounds](https://www.youtube.com/channel/UCraxrRno-ksSr9dU1oUxpog)

Otherwise some useful basic bits that I use are:

```
//For looping sounds
FMOD.Studio.EventInstance engine; //Creates an EventInstance C# can manipulate

RuntimeManager.AttachInstanceToGameObject(engine, transform, rigidbody); //Attaches the 
audio instance to a Unity transform

engine.setParameterByName("RPM", pitch); //Modulate sound by C# variable pitch, with FMOD defined variable RPM 

//For one shot samples
RuntimeManager.PlayOneShot("event:/Bike/FX/ShieldBreak", position); //Plays a one shot sample from FMOD GUID path at position

```

Hope that helps!

---

<div class="post-metadata">

### Author: ![123qwe](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/123qwe/32/1697_2.png) [@123qwe](https://qa.fmod.com/u/123qwe)
#### Post date: [December 17, 2020, 10:14am UTC](https://qa.fmod.com/t/help-for-complete-beginner-with-c/16541/4 "2020-12-17T10:14:43Z")

</div>

Thanks
