Ejemplo n.º 1
0
 /// <summary>
 /// Loads sound from a byte array.
 /// </summary>
 /// <param name="data">The sound byte information.</param>
 public Sound(byte[] data)
 {
     Mixer.OpenInternal();
     this.Handle = Mixer.Load(data, out this.size);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Loads a .wav, .ogg, .mp3, .mod or .mid file into memory.
 /// </summary>
 /// <param name="file">The file to load into memory.</param>
 public Sound(string file)
 {
     Mixer.OpenInternal();
     this.Handle = Mixer.Load(file, out this.size);
 }