2014-04-20 16:57:38 -04:00
|
|
|
|
using NTwain.Data;
|
|
|
|
|
using NTwain.Internals;
|
2014-04-03 18:52:11 -04:00
|
|
|
|
using System;
|
2014-04-02 19:01:21 -04:00
|
|
|
|
|
|
|
|
|
namespace NTwain.Triplets
|
|
|
|
|
{
|
2014-04-04 22:19:16 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents <see cref="DataArgumentType.AudioNativeXfer"/>.
|
|
|
|
|
/// </summary>
|
2014-04-02 19:01:21 -04:00
|
|
|
|
sealed class AudioNativeXfer : OpBase
|
|
|
|
|
{
|
2014-04-20 18:42:51 -04:00
|
|
|
|
internal AudioNativeXfer(ITwainSessionInternal session) : base(session) { }
|
2014-04-02 19:01:21 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Causes the transfer of an audio data from the Source to the application, via the Native
|
|
|
|
|
/// transfer mechanism, to begin. The resulting data is stored in main memory in a single block.
|
|
|
|
|
/// The data is stored in AIFF format on the Macintosh and as a WAV format under Microsoft
|
|
|
|
|
/// Windows. The size of the audio snippet that can be transferred is limited to the size of the
|
|
|
|
|
/// memory block that can be allocated by the Source.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="handle">The handle.</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public ReturnCode Get(ref IntPtr handle)
|
|
|
|
|
{
|
|
|
|
|
Session.VerifyState(6, 6, DataGroups.Audio, DataArgumentType.AudioNativeXfer, Message.Get);
|
2014-05-20 07:25:57 -04:00
|
|
|
|
return Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, DataGroups.Audio, DataArgumentType.AudioNativeXfer, Message.Get, ref handle);
|
2014-04-02 19:01:21 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|