Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Microphone.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 
4 using System;
5 using System.Diagnostics;
6 
7 namespace SiliconStudio.Paradox.Audio
8 {
9  /// <summary>
10  /// Class implementing the IRecoder interface designed to capture microphone audio input. Refer to <see cref="IRecorder"/> for more details.
11  /// </summary>
12  internal sealed partial class Microphone : IRecorder
13  {
14  #region Implementation of the IRecorder interface
15 
16  public TimeSpan BufferDuration { get; set; }
17 
18  public TimeSpan BufferSize { get; set; }
19 
20  public int SampleRate { get; private set; }
21 
22  public RecorderState State { get; private set; }
23 
24  public TimeSpan GetSampleDuration(int sizeInBytes)
25  {
26  throw new NotImplementedException();
27  }
28 
29  public int GetSampleSizeInBytes(TimeSpan duration)
30  {
31  throw new NotImplementedException();
32  }
33 
34  public int GetData(byte[] buffer)
35  {
36  throw new NotImplementedException();
37  }
38 
39  public int GetData(byte[] buffer, int offset, int count)
40  {
41  // Just to avoid warning on BufferReady, code to remove
42  if (BufferReady != null) BufferReady(this, EventArgs.Empty);
43  throw new NotImplementedException();
44  }
45 
46  public event EventHandler<EventArgs> BufferReady;
47 
48  #endregion
49  }
50 }
_In_ size_t count
Definition: DirectXTexP.h:174