mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-05 20:59:23 +08:00
22 lines
629 B
C#
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);
|
|
}
|
|
}
|
|
} |