# FMOD error 51 on Samsung S7 EDGE

**URL:** <https://qa.fmod.com/t/fmod-error-51-on-samsung-s7-edge/13982>\
**Category:** FMOD Studio\
**Created:** [July 4, 2018, 3:37pm UTC](https://qa.fmod.com/t/fmod-error-51-on-samsung-s7-edge/13982 "2018-07-04T15:37:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadowzaky](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@shadowzaky](https://qa.fmod.com/u/shadowzaky)\
**Post date:** [July 4, 2018, 3:37pm UTC](https://qa.fmod.com/t/fmod-error-51-on-samsung-s7-edge/13982/1 "2018-07-04T15:37:05Z")

</div>

Hello,

I’m trying to figure out why I keep getting FMOD Error 51 when trying to initialize fmod with a Samsung S7 EDGE running on Android 8.0.0.

Here are the logs I receive when looking at the logcat of the device using a search filter “fmod”

```
I/fmod: SystemI::init : Initialize version=11006 (95384), maxchannels=512, flags=0x00000000
I/fmod: FMOD_OS_Init : Detected CPU family: 4, features: 0x7F, cores: 4.
I/fmod: FMOD::supportsLowLatency : Low latency = false, Pro Audio = false, Bluetooth On = false, Acceptable Block Size = true (192)
SystemI::setOutputInternal : Setting output to 'FMOD Audio Track Output'
OutputAudioTrack::init : Device is running API level 26.
W/fmod: OutputAudioTrack::init : Only mono, stereo, 5.1 and 7.1 supported, defaulting to stereo.
I/fmod: AudioDevice::init : Min buffer size: 7744 bytes
AudioDevice::init : Actual buffer size: 8192 bytes
E/fmod: AudioDevice::init : AudioTrack play caused IllegalStateException
E/fmod: OutputAudioTrack::init : Could not init Java object.
I/fmod: OutputAudioTrack::close : Closing...
OutputAudioTrack::close : Done.
I/fmod: SystemI::close : Closed.
I/AudioEngineFMOD: FMOD Error : 51

```

I tried debugging quickly our init method and I get the error “FMOD\_ERR\_OUTPUT\_INIT” when running this

```
bool AudioEngineFMOD::Init()
{
    if( ErrorCheck(FMOD::System_Create(&m_system)) )
    {
        return false;
    }

    if( ErrorCheck(m_system->init(512, FMOD_INIT_NORMAL, 0)) ) <=== This init returns the error
    {
       return false;
    }
    return true;
}
```

---

<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:** [July 9, 2018, 4:34am UTC](https://qa.fmod.com/t/fmod-error-51-on-samsung-s7-edge/13982/2 "2018-07-09T04:34:12Z")

</div>

First this to check is that you have followed the steps listed for Android:  
[https://fmod.com/resources/documentation-api?page=content/generated/platform\_android/basics.html#/](https://fmod.com/resources/documentation-api?page=content/generated/platform_android/basics.html#/)

Is this only occurring on that particular device or others as well?
