ntwain/NTwain/Triplets/DGAudio/DGAudio.AudioInfo.cs
2014-04-02 19:13:15 -04:00

22 lines
629 B
C#

using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{
public sealed class AudioInfo : OpBase
{
internal AudioInfo(TwainSession session) : base(session) { }
/// <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 PInvoke.DsmEntry(Session.AppId, Session.SourceId, Message.Get, info);
}
}
}