예제 #1
0
 public static extern ReturnCode DsmWinNew(
     [In, Out] TWIdentity origin,
     [In, Out] TWIdentity destination,
     DataGroups dg,
     DataArgumentType dat,
     Message msg,
     [In, Out] TWAudioInfo data);
예제 #2
0
파일: Dsm.cs 프로젝트: lukaszmn/ntwain
 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();
 }
예제 #3
0
 /// <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));
 }