From 8c4603c73675958efc960fbd4bb599a2909d106a Mon Sep 17 00:00:00 2001 From: Konstantin Date: Mon, 16 Jan 2023 14:52:43 +0100 Subject: Source codes --- WhisperNet/API/iAudioReader.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 WhisperNet/API/iAudioReader.cs (limited to 'WhisperNet/API/iAudioReader.cs') diff --git a/WhisperNet/API/iAudioReader.cs b/WhisperNet/API/iAudioReader.cs new file mode 100644 index 0000000..68cf916 --- /dev/null +++ b/WhisperNet/API/iAudioReader.cs @@ -0,0 +1,23 @@ +using ComLight; + +namespace Whisper +{ + /// Audio stream reader object + /// The implementation is forward-only, and these objects ain’t reusable.
+ /// To read a source file multiple time, dispose and re-create the reader.
+ [ComInterface( "35b988da-04a6-476a-a193-d8891d5dc390", eMarshalDirection.ToManaged )] + public interface iAudioReader: IDisposable + { + /// Get duration of the media file + [RetValIndex] + TimeSpan getDuration(); + } + + /// Audio capture reader object + /// This interface has no public methods callable from C#.
+ /// It’s only here to pass data between different functions implemented in C++.
+ [ComInterface( "747752c2-d9fd-40df-8847-583c781bf013", eMarshalDirection.ToManaged )] + public interface iAudioCapture: IDisposable + { + } +} \ No newline at end of file -- cgit v1.2.3