ADL.NativeAPI.adl_set_audio_output_device C# (CSharp) Method

adl_set_audio_output_device() private method

private adl_set_audio_output_device ( adl_void_rclbck_t rclbck, IntPtr handle, IntPtr opaque, ADLString &device_id ) : void
rclbck adl_void_rclbck_t
handle IntPtr
opaque IntPtr
device_id ADLString
return void
        public static extern void adl_set_audio_output_device(
            adl_void_rclbck_t rclbck, ADLH handle, IntPtr opaque,
            ref ADLString device_id);

Usage Example

Example #1
0
        // =====================================================================

        /// <inheritdoc />
        public void setAudioOutputDevice(Responder <object> responder,
                                         string deviceId)
        {
            if (!isPlatformInitialized <object>(responder))
            {
                return;
            }

            ADLString devId = StringHelper.toNative(deviceId);

            NativeAPI.adl_set_audio_output_device(
                _voidRCallback, _platformHandle,
                saveResponder(responder), ref devId);
        }