# Record sample

**URL:** <https://qa.fmod.com/t/record-sample/12081>\
**Category:** FMOD Engine\
**Created:** [October 10, 2015, 12:53pm UTC](https://qa.fmod.com/t/record-sample/12081 "2015-10-10T12:53:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hszhsh](https://avatars.discourse-cdn.com/v4/letter/h/9f8e36/32.png) [@hszhsh](https://qa.fmod.com/u/hszhsh)\
**Post date:** [October 10, 2015, 12:53pm UTC](https://qa.fmod.com/t/record-sample/12081/1 "2015-10-10T12:53:33Z")

</div>

I’m running the record sample on mac (version 10.11), and find that getRecordNumDrivers sometimes got 0 record drivers(but sometimes it is right). But if I add Common\_Sleep(1000); anywhere before getRecordNumDrivers, It will return 1 record driver which is ‘Built-in Microphone’. Is it a bug of fmod library or the example?

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [October 12, 2015, 3:48am UTC](https://qa.fmod.com/t/record-sample/12081/2 "2015-10-12T03:48:25Z")

</div>

Thanks for the bug report, it looks like a legit bug in the FMOD library. If you try to enumerate the recording device list within a second of System::init it will report 0 devices. I ensure this is fixed up for our 1.07.01 release, for now just delay your execution of the enumerate functions if need be.
