public static extern ReturnCode DsmWinNew( [In, Out] TWIdentity origin, [In, Out] TWIdentity destination, DataGroups dg, DataArgumentType dat, Message msg, [In, Out] TWAudioInfo data);
public static ReturnCode DsmEntry( TWIdentity origin, TWIdentity destination, Message msg, TWAudioInfo data) { if (PlatformInfo.Current.IsWindows) { if (PlatformInfo.Current.UseNewWinDSM) { return(NativeMethods.DsmWinNew(origin, destination, DataGroups.Audio, DataArgumentType.AudioInfo, msg, data)); } else { return(NativeMethods.DsmWinOld(origin, destination, DataGroups.Audio, DataArgumentType.AudioInfo, msg, data)); } } else if (PlatformInfo.Current.IsLinux) { return(NativeMethods.DsmLinux(origin, destination, DataGroups.Audio, DataArgumentType.AudioInfo, msg, data)); } throw new PlatformNotSupportedException(); }
/// <summary> /// Used to get the information of the current audio data ready to transfer. /// </summary> /// <param name="info">The info.</param> /// <returns></returns> public ReturnCode Get(out TWAudioInfo info) { Session.VerifyState(6, 7, DataGroups.Audio, DataArgumentType.AudioInfo, Message.Get); info = new TWAudioInfo(); return(Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, Message.Get, info)); }