Beispiel #1
0
 private SoundFile(SoundBufferData bufferData)
 {
     this.buffer = SoundBuffer.FromData(bufferData);
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new soundbuffer from an uncompressed wave-file.
 /// </summary>
 /// <param name="file">The file to load the data from.</param>
 /// <returns>A SoundBuffer object containing the data from the specified file.</returns>
 public static SoundBuffer FromWav(Stream file)
 {
     return(SoundBuffer.FromData(SoundBufferData.FromWav(file)));
 }