ntwain/NTwain/Triplets/DGAudio/DGAudio.cs

50 lines
1006 B
C#
Raw Normal View History

2014-04-21 04:57:38 +08:00
using NTwain.Data;
using NTwain.Internals;
2014-04-05 10:19:16 +08:00
using System;
2014-04-03 07:01:21 +08:00
namespace NTwain.Triplets
{
2014-04-05 10:19:16 +08:00
/// <summary>
/// Represents <see cref="DataGroups.Audio"/>.
2014-04-03 07:01:21 +08:00
/// </summary>
public sealed class DGAudio
{
2014-04-06 04:48:28 +08:00
ITwainStateInternal _session;
internal DGAudio(ITwainStateInternal session)
2014-04-03 07:01:21 +08:00
{
if (session == null) { throw new ArgumentNullException("session"); }
_session = session;
}
AudioFileXfer _audioFileXfer;
internal AudioFileXfer AudioFileXfer
{
get
{
if (_audioFileXfer == null) { _audioFileXfer = new AudioFileXfer(_session); }
return _audioFileXfer;
}
}
AudioInfo _audioInfo;
public AudioInfo AudioInfo
{
get
{
if (_audioInfo == null) { _audioInfo = new AudioInfo(_session); }
return _audioInfo;
}
}
AudioNativeXfer _audioNativeXfer;
internal AudioNativeXfer AudioNativeXfer
{
get
{
if (_audioNativeXfer == null) { _audioNativeXfer = new AudioNativeXfer(_session); }
return _audioNativeXfer;
}
}
}
}