forked from Trevor3000/RemoteControl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWavInDevice.cs
More file actions
59 lines (50 loc) · 1.36 KB
/
WavInDevice.cs
File metadata and controls
59 lines (50 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using System.Collections.Generic;
using System.Text;
namespace RemoteControl.Audio
{
/// <summary>
/// This class represents wav input device.
/// </summary>
public class WavInDevice
{
private int m_Index = 0;
private string m_Name = "";
private int m_Channels = 1;
/// <summary>
/// Default constructor.
/// </summary>
/// <param name="index">Device index in devices.</param>
/// <param name="name">Device name.</param>
/// <param name="channels">Number of audio channels.</param>
internal WavInDevice(int index,string name,int channels)
{
m_Index = index;
m_Name = name;
m_Channels = channels;
}
#region Properties Implementation
/// <summary>
/// Gets device name.
/// </summary>
public string Name
{
get{ return m_Name; }
}
/// <summary>
/// Gets number of input channels(mono,stereo,...) supported.
/// </summary>
public int Channels
{
get{ return m_Channels; }
}
/// <summary>
/// Gets device index in devices.
/// </summary>
internal int Index
{
get{ return m_Index; }
}
#endregion
}
}