# GetRecordingDefaultDevice [2/2] (/zh-CN/api-reference/rtc/csharp-windows/api-iaudiodevicemanager-getrecordingdefaultdevice2) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). ```csharp public abstract int GetRecordingDefaultDevice(ref string deviceId, ref string deviceTypeName, ref string deviceName); ``` ## 详情 [#详情] :::warning[注意] 该方法仅适用于 macOS。 ::: ## 参数 [#参数] ### `deviceId` [#deviceid] 输出参数,系统默认的音频采集设备 ID。 ### `deviceName` [#devicename] 输出参数,系统默认的音频采集设备名称。 ### `deviceTypeName` [#devicetypename] 输出参数,音频设备类型,如:built-in、USB、HDMI 等。 ## 返回值 [#返回值] - 0:方法调用成功。 - < 0:方法调用失败。 详见 [错误码](/zh-CN/realtime-media/rtc/reference/error-code) 了解详情和解决建议。