///<summary>
        ///    Return an array of strings which are the driver names for the "microphone" devices.
        ///</summary>
        public string[] GetAllMicrophoneDevices(FMOD.System fmod)
        {
            FMOD.RESULT result;
            int numSoundSources = 0;
            StringBuilder drivername = new StringBuilder(256);

            //             result = system.setDriver(selected);
            //             ERRCHECK(result);

            // Get Record drivers
            result = fmod.getRecordNumDrivers(ref numSoundSources);
            CheckRetCode(result);

            string[] soundSourceNames = new string[numSoundSources];

            for (int count=0; count<numSoundSources; count++) {
                FMOD.GUID guid = new FMOD.GUID();
                result = fmod.getRecordDriverInfo(count, drivername, drivername.Capacity, ref guid);
                // result = fmod.getRecordDriverName(count, drivername, drivername.Capacity);
                CheckRetCode(result);
                soundSourceNames[count] = drivername.ToString();
            }
            return soundSourceNames;
        }