///<summary> /// Return an array of strings which are the driver names for the playback devices. ///</summary> public string[] GetAllPlaybackDevices(FMOD.System fmod) { FMOD.RESULT result; int numPlaybackDevices = 0; StringBuilder drivername = new StringBuilder(256); // Get playback drivers result = fmod.getNumDrivers(ref numPlaybackDevices); CheckRetCode(result); string[] playbackDeviceNames = new string[numPlaybackDevices]; for (int count=0; count<numPlaybackDevices; count++) { FMOD.GUID guid = new FMOD.GUID(); result = fmod.getDriverInfo(count, drivername, drivername.Capacity, ref guid); // result = fmod.getDriverName(count, drivername, drivername.Capacity); CheckRetCode(result); playbackDeviceNames[count] = drivername.ToString(); } return playbackDeviceNames; }