Ejemplo n.º 1
0
		/// <summary>
		/// Return an Asio Instance
		/// </summary>
		/// <returns>An Asio Instance</returns>
		public static NAudioProxy GetAsioInstance()
		{
			if (instance == null) {
				instance = new NAudioProxy(Output.Asio, false, null, 250);
			}
			return instance;
		}
Ejemplo n.º 2
0
 /// <summary>
 /// Return an Asio Instance
 /// </summary>
 /// <returns>An Asio Instance</returns>
 public static NAudioProxy GetAsioInstance()
 {
     if (instance == null)
     {
         instance = new NAudioProxy(Output.Asio, false, null, 250);
     }
     return(instance);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Return a WaveOut Instance
 /// </summary>
 /// <returns>A WaveOut Instance</returns>
 public static NAudioProxy GetWaveOutInstance()
 {
     if (instance == null)
     {
         instance = new NAudioProxy();
     }
     return(instance);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Return a Wasapi Instance
 /// </summary>
 /// <param name="wasapiExclusiveMode">Wasapi audio client driver Mode, shared if false, exclusive if true</param>
 /// <param name="latency">Latency in ms</param>
 /// <returns>A Wasapi Instance</returns>
 public static NAudioProxy GetWasapiInstance(bool wasapiExclusiveMode, int latency)
 {
     if (instance == null)
     {
         instance = new NAudioProxy(Output.Wasapi, wasapiExclusiveMode, null, latency);
     }
     return(instance);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Return a DirectSound Instance
 /// </summary>
 /// <param name="latency">Latency in ms</param>
 /// <returns>A DirectSound Instance</returns>
 public static NAudioProxy GetDirectSoundInstance(int latency)
 {
     if (instance == null)
     {
         instance = new NAudioProxy(Output.DirectSound, false, null, latency);
     }
     return(instance);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Return an Asio Instance
 /// </summary>
 /// <param name="asioDriverName">Asio Driver Name, can be null to use default asio driver</param>
 /// <param name="latency">Latency in ms</param>
 /// <returns>An Asio Instance</returns>
 /// <example>
 //	string[] asioDevices = SoundPlayer.GetAsioDriverNames();
 //	return SoundPlayer.GetAsioInstance(asioDevices[0], 250);
 /// </example>
 public static NAudioProxy GetAsioInstance(string asioDriverName, int latency)
 {
     if (instance == null)
     {
         instance = new NAudioProxy(Output.Asio, false, asioDriverName, latency);
     }
     return(instance);
 }
Ejemplo n.º 7
0
		/// <summary>
		/// Return an Asio Instance
		/// </summary>
		/// <param name="asioDriverName">Asio Driver Name, can be null to use default asio driver</param>
		/// <param name="latency">Latency in ms</param>
		/// <returns>An Asio Instance</returns>
		/// <example>
		//	string[] asioDevices = SoundPlayer.GetAsioDriverNames();
		//	return SoundPlayer.GetAsioInstance(asioDevices[0], 250);
		/// </example>
		public static NAudioProxy GetAsioInstance(string asioDriverName, int latency)
		{
			if (instance == null) {
				instance = new NAudioProxy(Output.Asio, false, asioDriverName, latency);
			}
			return instance;
		}
Ejemplo n.º 8
0
		/// <summary>
		/// Return a WaveOut Instance
		/// </summary>
		/// <returns>A WaveOut Instance</returns>
		public static NAudioProxy GetWaveOutInstance()
		{
			if (instance == null)
				instance = new NAudioProxy();
			return instance;
		}
Ejemplo n.º 9
0
		/// <summary>
		/// Return a Wasapi Instance
		/// </summary>
		/// <param name="wasapiExclusiveMode">Wasapi audio client driver Mode, shared if false, exclusive if true</param>
		/// <param name="latency">Latency in ms</param>
		/// <returns>A Wasapi Instance</returns>
		public static NAudioProxy GetWasapiInstance(bool wasapiExclusiveMode, int latency)
		{
			if (instance == null) {
				instance = new NAudioProxy(Output.Wasapi, wasapiExclusiveMode, null, latency);
			}
			return instance;
		}
Ejemplo n.º 10
0
		/// <summary>
		/// Return a DirectSound Instance
		/// </summary>
		/// <param name="latency">Latency in ms</param>
		/// <returns>A DirectSound Instance</returns>
		public static NAudioProxy GetDirectSoundInstance(int latency)
		{
			if (instance == null) {
				instance = new NAudioProxy(Output.DirectSound, false, null, latency);
			}
			return instance;
		}