예제 #1
0
 ////////////////////////////////////////////////////////////
 /// <summary>
 /// Construct a sound buffer from another sound buffer
 /// </summary>
 /// <param name="copy">Sound buffer to copy</param>
 ////////////////////////////////////////////////////////////
 public SoundBuffer(SoundBuffer copy) :
     base(sfSoundBuffer_copy(copy.CPointer))
 {
 }
 ////////////////////////////////////////////////////////////
 /// <summary>
 /// Called when the current capture stops
 /// </summary>
 ////////////////////////////////////////////////////////////
 protected override void OnStop()
 {
     mySoundBuffer = new SoundBuffer(mySamplesArray.ToArray(), 1, SampleRate);
 }
예제 #3
0
 ////////////////////////////////////////////////////////////
 /// <summary>
 /// Construct the sound with a buffer
 /// </summary>
 /// <param name="buffer">Sound buffer containing the audio data to play with the sound</param>
 ////////////////////////////////////////////////////////////
 public Sound(SoundBuffer buffer) :
     base(sfSound_create())
 {
     SoundBuffer = buffer;
 }