# Unreal Engine-Android The getRecordNumDrivers method callback is 0

**URL:** <https://qa.fmod.com/t/unreal-engine-android-the-getrecordnumdrivers-method-callback-is-0/14184>\
**Category:** Unreal Engine\
**Created:** [November 8, 2018, 4:56am UTC](https://qa.fmod.com/t/unreal-engine-android-the-getrecordnumdrivers-method-callback-is-0/14184 "2018-11-08T04:56:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VectorX](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/vectorx/32/45_2.png) [@VectorX](https://qa.fmod.com/u/VectorX)\
**Post date:** [November 8, 2018, 4:56am UTC](https://qa.fmod.com/t/unreal-engine-android-the-getrecordnumdrivers-method-callback-is-0/14184/1 "2018-11-08T04:56:29Z")

</div>

I did everything possible, enabling permission…etc, not use

studioSystem = IFMODStudioModule::Get().GetStudioSystem(EFMODSystemContext::Runtime);

#if PLATFORM\_ANDROID  
lowLevel-\>setOutput(FMOD\_OUTPUTTYPE\_OPENSL);  
#endif  
studioSystem-\>getLowLevelSystem(&lowLevel);

results = lowLevel-\>getRecordNumDrivers(NULL, &recordDriverNumber);

What I’m doing wrong?

In the editor it runs fine

---

<div class="post-metadata">

**Author:** ![VectorX](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/vectorx/32/45_2.png) [@VectorX](https://qa.fmod.com/u/VectorX)\
**Post date:** [November 9, 2018, 6:53am UTC](https://qa.fmod.com/t/unreal-engine-android-the-getrecordnumdrivers-method-callback-is-0/14184/2 "2018-11-09T06:53:44Z")

</div>

the only solution worked for me  
result = FMOD::System\_Create(&lowlevel);  
#if PLATFORM\_ANDROID  
lowlevel-\>setOutput(FMOD\_OUTPUTTYPE\_OPENSL);  
#endif

without using studioSystem = IFMODStudioModule::Get().GetStudioSystem(EFMODSystemContext::Runtime);

---

<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:** [November 12, 2018, 1:33am UTC](https://qa.fmod.com/t/unreal-engine-android-the-getrecordnumdrivers-method-callback-is-0/14184/3 "2018-11-12T01:33:09Z")

</div>

On any platform other then Windows, the output type has to be set before FMOD is initialized otherwise it will not do anything.

You would have to modify the FMODStudioModule.cpp to force the device to OpenSL before StudioSystem[Type]-\>initialize(…

---

<div class="post-metadata">

**Author:** ![VectorX](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/vectorx/32/45_2.png) [@VectorX](https://qa.fmod.com/u/VectorX)\
**Post date:** [November 12, 2018, 5:08am UTC](https://qa.fmod.com/t/unreal-engine-android-the-getrecordnumdrivers-method-callback-is-0/14184/4 "2018-11-12T05:08:48Z")

</div>

> [@](#):
>
> On any platform other then Windows, the output type has to be set before FMOD is initialized otherwise it will not do anything.
> 
> You would have to modify the FMODStudioModule.cpp to force the device to OpenSL before StudioSystem[Type]-\>initialize(…

thanks for let me know about this trick
