Inheritance: System.DisposableBase
		/// <summary>
		/// 
		/// </summary>
		/// <param name="effect"></param>
		/// <param name="voice"></param>
        internal SoundEffectInstance( AudioDevice device, SoundEffect effect, SourceVoice voice )
        {
			this.device = device;

            _effect = effect;
            _voice = voice;
        }
Beispiel #2
0
		/// <summary>
		/// SoundEffect constructor
		/// </summary>
		/// <param name="buffer">sound data buffer</param>
		/// <param name="offset"></param>
		/// <param name="count"></param>
		/// <param name="sampleRate"></param>
		/// <param name="channels"></param>
		/// <param name="loopStart"></param>
		/// <param name="loopLength"></param>
		public SoundEffect( AudioDevice device, byte[] buffer, int offset, int bytesCount, int sampleRate, AudioChannels channels, int loopStart, int loopLength )
        {
			this.device	=	device;
            Initialize(new WaveFormat(sampleRate, (int)channels), buffer, offset, bytesCount, loopStart, loopLength);
        }
Beispiel #3
0
 /// <summary>
 /// SoundEffect constructor
 /// </summary>
 /// <param name="buffer">sound data buffer</param>
 /// <param name="offset"></param>
 /// <param name="count"></param>
 /// <param name="sampleRate"></param>
 /// <param name="channels"></param>
 /// <param name="loopStart"></param>
 /// <param name="loopLength"></param>
 public SoundEffect(AudioDevice device, byte[] buffer, int offset, int bytesCount, int sampleRate, AudioChannels channels, int loopStart, int loopLength)
 {
     this.device = device;
     Initialize(new WaveFormat(sampleRate, (int)channels), buffer, offset, bytesCount, loopStart, loopLength);
 }