summaryrefslogtreecommitdiffstats
path: root/WhisperNet/API/iAudioReader.cs
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-16 14:52:43 +0100
committerKonstantin <const@const.me>2023-01-16 14:52:43 +0100
commit8c4603c73675958efc960fbd4bb599a2909d106a (patch)
tree714dc6fc9a1672d5fd7f89676b97e10959662abc /WhisperNet/API/iAudioReader.cs
parent990a8d0dbaefc996244097397259e92758b15cce (diff)
Source codes
Diffstat (limited to 'WhisperNet/API/iAudioReader.cs')
-rw-r--r--WhisperNet/API/iAudioReader.cs23
1 files changed, 23 insertions, 0 deletions
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
+{
+ /// <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
+ {
+ }
+} \ No newline at end of file