# Playing a Sound through Android App

**URL:** https://qa.fmod.com/t/playing-a-sound-through-android-app/14460
**Category:** FMOD Engine
**Created:** [March 19, 2019, 3:00pm UTC](https://qa.fmod.com/t/playing-a-sound-through-android-app/14460 "2019-03-19T15:00:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Madhu](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Madhu](https://qa.fmod.com/u/Madhu)
#### Post date: [March 19, 2019, 3:00pm UTC](https://qa.fmod.com/t/playing-a-sound-through-android-app/14460/1 "2019-03-19T15:00:05Z")

</div>

Hi All,  
I am new to FMOD and Adaptive Audio.  
I am trying to build a custom Mobile App through which i would like to play an audio.  
As a first step i am trying to find if there are any examples on how to achieve the same using FMOD.  
As a next step, i would like to make the audio adaptive (Modifying the sound decibel low to high or vice versa) automated based on input.

Thanks,  
Madhu

---

<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 24, 2019, 10:02pm UTC](https://qa.fmod.com/t/playing-a-sound-through-android-app/14460/2 "2019-03-24T22:02:58Z")

</div>

We have a number of example projects available in our API download: [https://www.fmod.com/download](https://www.fmod.com/download).

As for adaptive audio, this can be broken down into two parts.  
The first is to create the event in Studio, we have a few videos on this topic [here](https://www.youtube.com/playlist?list=PLp4vT3ssm5SUqwHvbverTlYu4LwwkWHek).  
The other is controlling the event from the game. One of our examples (event\_parameter) shows how you can set parameter values on an event from your game.

---

<div class="post-metadata">

### Author: ![Madhu](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Madhu](https://qa.fmod.com/u/Madhu)
#### Post date: [April 1, 2019, 1:43pm UTC](https://qa.fmod.com/t/playing-a-sound-through-android-app/14460/3 "2019-04-01T13:43:15Z")

</div>

Thank you Cameron.

Regarding the adaptive audio, i have a .mp3 file duration of 3 minutes and i would like to change the volume of audio file dynamically during the course of play.  
For example:  
Once audio play has started, somewhere around 10 seconds, i would like to increase the volume and again later decrease/increase the volume till the end.

Can you let me know how to achieve the same using FMOD API’s without using studio’s.

An example on same would be highly appreciated.

---

<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: [April 8, 2019, 1:30am UTC](https://qa.fmod.com/t/playing-a-sound-through-android-app/14460/4 "2019-04-08T01:30:13Z")

</div>

There are a few ways you could go about this, the first couple that come to mind are:

- You could use fade points:  
[https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-channelcontrol.html#channelcontrol\_addfadepoint](https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-channelcontrol.html#channelcontrol_addfadepoint)

- Set the volume directly from an event in game:  
[https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-channelcontrol.html#channelcontrol\_setvolume](https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-channelcontrol.html#channelcontrol_setvolume)
