summaryrefslogtreecommitdiffstats
path: root/WhisperNet/API/iAudioReader.cs
blob: 68cf916d6e536d5c71567895f619eaae3edb5f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using ComLight;

namespace Whisper
{
	/// <summary>Audio stream reader object</summary>
	/// <remarks>The implementation is forward-only, and these objects ain’t reusable.<br/>
	/// To read a source file multiple time, dispose and re-create the reader.</remarks>
	[ComInterface( "35b988da-04a6-476a-a193-d8891d5dc390", eMarshalDirection.ToManaged )]
	public interface iAudioReader: IDisposable
	{
		/// <summary>Get duration of the media file</summary>
		[RetValIndex]
		TimeSpan getDuration();
	}

	/// <summary>Audio capture reader object</summary>
	/// <remarks>This interface has no public methods callable from C#.<br/>
	/// It’s only here to pass data between different functions implemented in C++.</remarks>
	[ComInterface( "747752c2-d9fd-40df-8847-583c781bf013", eMarshalDirection.ToManaged )]
	public interface iAudioCapture: IDisposable
	{
	}
}