/// </summary>\r
public class AudioDeviceConnectionChangedEventArgs : EventArgs\r
{\r
- private AudioDevice _device;\r
- private bool _isConnected;\r
-\r
internal AudioDeviceConnectionChangedEventArgs(AudioDevice device, bool isConnected)\r
{\r
- _device = device;\r
- _isConnected = isConnected;\r
+ Device = device;\r
+ IsConnected = isConnected;\r
}\r
\r
/// <summary>\r
/// The object of sound device\r
/// </summary>\r
- public AudioDevice Device\r
- {\r
- get\r
- {\r
- return _device;\r
- }\r
- }\r
+ public AudioDevice Device { get; }\r
\r
/// <summary>\r
/// The state of device connection: (true = connected, false = disconnected)\r
/// </summary>\r
- public bool IsConnected\r
- {\r
- get\r
- {\r
- return _isConnected;\r
- }\r
- }\r
+ public bool IsConnected { get; }\r
}\r
}\r
/// </summary>\r
public class AudioDevicePropertyChangedEventArgs : EventArgs\r
{\r
- private AudioDevice _device;\r
- private AudioDeviceProperty _changedProperty;\r
-\r
internal AudioDevicePropertyChangedEventArgs(AudioDevice device, AudioDeviceProperty changedInfo)\r
{\r
- _device = device;\r
- _changedProperty = changedInfo;\r
+ Device = device;\r
+ ChangedInfo = changedInfo;\r
}\r
\r
/// <summary>\r
/// The object of sound device\r
/// </summary>\r
- public AudioDevice Device\r
- {\r
- get\r
- {\r
- return _device;\r
- }\r
- }\r
+ public AudioDevice Device { get; }\r
\r
/// <summary>\r
/// The entry of sound device information\r
/// </summary>\r
- public AudioDeviceProperty ChangedInfo\r
- {\r
- get\r
- {\r
- return _changedProperty;\r
- }\r
- }\r
+ public AudioDeviceProperty ChangedInfo { get; }\r
}\r
}\r
/// <summary>
/// The VolumeController object (singleton) is-a part of SoundManager and its properties and methods are used via AudioManager
/// </summary>
- public static AudioVolume VolumeController
- {
- get;
- private set;
- }
+ public static AudioVolume VolumeController { get; }
/// <summary>
/// Gets the list consisting of all devices currently connected.
/// </summary>\r
public class FocusStateChangedEventArgs : EventArgs\r
{\r
- private AudioStreamFocusState _focusState;\r
- private AudioStreamFocusChangedReason _reason;\r
- private string _extraInformation;\r
-\r
internal FocusStateChangedEventArgs(AudioStreamFocusState focusState, AudioStreamFocusChangedReason reason, string extraInformation)\r
{\r
- _focusState = focusState;\r
- _reason = reason;\r
- _extraInformation = extraInformation;\r
+ FocusState = focusState;\r
+ FocusChangedReason = reason;\r
+ ExtraInformation = extraInformation;\r
}\r
\r
/// <summary>\r
/// The changed focus state\r
/// </summary>\r
- public AudioStreamFocusState FocusState \r
- {\r
- get\r
- {\r
- return _focusState;\r
- }\r
- }\r
+ public AudioStreamFocusState FocusState { get; }\r
\r
/// <summary>\r
/// The reason for state change of the focus\r
/// </summary>\r
- public AudioStreamFocusChangedReason FocusChangedReason \r
- {\r
- get\r
- {\r
- return _reason;\r
- }\r
- }\r
+ public AudioStreamFocusChangedReason FocusChangedReason { get; }\r
\r
/// <summary>\r
/// The extra information\r
/// </summary>\r
- public string ExtraInformation\r
- {\r
- get\r
- {\r
- return _extraInformation;\r
- }\r
- }\r
+ public string ExtraInformation { get; }\r
}\r
}\r
/// </summary>\r
public class StreamFocusStateChangedEventArgs : EventArgs\r
{\r
- private AudioStreamFocusChangedReason _reason;\r
- private string _extraInformation;\r
-\r
internal StreamFocusStateChangedEventArgs(AudioStreamFocusChangedReason reason, string extraInformation)\r
{\r
- _reason = reason;\r
- _extraInformation = extraInformation;\r
+ FocusChangedReason = reason;\r
+ ExtraInfoformation = extraInformation;\r
}\r
\r
/// <summary>\r
/// The reason for state change of the focus\r
/// </summary>\r
- public AudioStreamFocusChangedReason FocusChangedReason \r
- {\r
- get\r
- {\r
- return _reason;\r
- }\r
- }\r
+ public AudioStreamFocusChangedReason FocusChangedReason { get; }\r
\r
/// <summary>\r
/// The extra information\r
/// </summary>\r
- public string ExtraInfoformation\r
- {\r
- get\r
- {\r
- return _extraInformation;\r
- }\r
- }\r
+ public string ExtraInfoformation { get; }\r
}\r
-}
\ No newline at end of file
+}\r
/// <summary>\r
/// Extnded EventArgs which contains the parameteres to be passed to the AudioVolume Changed event\r
/// </summary>\r
- public class VolumeChangedEventArgs : EventArgs{\r
-\r
- private AudioVolumeType _type;\r
- private uint _level;\r
-\r
+ public class VolumeChangedEventArgs : EventArgs\r
+ {\r
internal VolumeChangedEventArgs(AudioVolumeType type, uint level)\r
{\r
- _type = type;\r
- _level = level;\r
+ Type = type;\r
+ Level = level;\r
}\r
\r
/// <summary>\r
/// The sound type of the changed volume\r
/// </summary>\r
- public AudioVolumeType Type \r
- {\r
- get\r
- {\r
- return _type;\r
- }\r
- }\r
+ public AudioVolumeType Type { get; }\r
\r
/// <summary>\r
/// The new volume value\r
/// </summary>\r
- public uint Level\r
- {\r
- get\r
- {\r
- return _level;\r
- }\r
- }\r
+ public uint Level { get; }\r
}\r
-}
\ No newline at end of file
+}\r