# Music tracks not playing on iPhone X

**URL:** https://qa.fmod.com/t/music-tracks-not-playing-on-iphone-x/13665
**Category:** FMOD Studio
**Created:** [January 25, 2018, 8:27am UTC](https://qa.fmod.com/t/music-tracks-not-playing-on-iphone-x/13665 "2018-01-25T08:27:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![shammi](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@shammi](https://qa.fmod.com/u/shammi)
#### Post date: [January 25, 2018, 8:27am UTC](https://qa.fmod.com/t/music-tracks-not-playing-on-iphone-x/13665/1 "2018-01-25T08:27:29Z")

</div>

I have been using FMOD for a while in my iOS game. iPhone X alone will not play music tracks in my game. All other audio is fine. It’s almost as if the bus that has the music tracks is completely muted.

I have tried upgrading to the latest versions of Studio and API, rebuilt my banks with no luck. The same banks play perfectly fine on other iOS devices.

Anyone else seeing this? Ideas?

Thanks,  
Shammi

---

<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: [January 28, 2018, 11:01pm UTC](https://qa.fmod.com/t/music-tracks-not-playing-on-iphone-x/13665/2 "2018-01-28T23:01:31Z")

</div>

> [@](#):
>
> I have been using FMOD for a while in my iOS game. iPhone X alone will not play music tracks in my game. All other audio is fine. It’s almost as if the bus that has the music tracks is completely muted.
> 
> I have tried upgrading to the latest versions of Studio and API, rebuilt my banks with no luck. The same banks play perfectly fine on other iOS devices.
> 
> Anyone else seeing this? Ideas?
> 
> Thanks,  
> Shammi

Are you getting any errors or warnings in the logs or when attaching a debugger?

---

<div class="post-metadata">

### Author: ![shammi](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@shammi](https://qa.fmod.com/u/shammi)
#### Post date: [January 29, 2018, 8:54am UTC](https://qa.fmod.com/t/music-tracks-not-playing-on-iphone-x/13665/3 "2018-01-29T08:54:59Z")

</div>

Actually, it’s a user error.

I was befuddled all this time because the initialization returned no error. Turns out that the problem was on my end.

I have a system to check the device version and appropriately cut out playing music on lower end devices. That system worked by comparing utsname.machine with the string identifiers for devices and not playing the music for lower end devices. I ended up using a strNicmp function for that and was passing in the length of the string I was comparing to. iPhone X identifies itself as iphone10 and my check for iPhone1 ended up returning successful .

Sorry for the trouble.

---

<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: [January 29, 2018, 9:06pm UTC](https://qa.fmod.com/t/music-tracks-not-playing-on-iphone-x/13665/4 "2018-01-29T21:06:25Z")

</div>

No worries, just glad you found the solution.

---

<div class="post-metadata">

### Author: ![shammi](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@shammi](https://qa.fmod.com/u/shammi)
#### Post date: [January 29, 2018, 8:59am UTC](https://qa.fmod.com/t/music-tracks-not-playing-on-iphone-x/13665/5 "2018-01-29T08:59:12Z")

</div>

This was a user error.

My system to identify the device and conditionally turn off music was causing this. I had a bug in my code where the system was identifying the device as iPhone1 instead of iPhone10. (I was using strNicmp, passing in the length of “iphone1”).
