コード例 #1
0
 /// <summary>
 /// Extract the bufferdata from an ogg-file.
 /// </summary>
 /// <param name="file">The file to load the data from.</param>
 /// <returns>A SoundBufferData object containing the data from the specified file.</returns>
 public static SoundBufferData FromOgg(string file)
 {
     return(SoundBufferData.FromOgg(File.OpenRead(file)));
 }
コード例 #2
0
ファイル: SoundFile.cs プロジェクト: tomrijnbeek/Cireon.Audio
 /// <summary>
 /// Loads a new soundfile from an ogg-file.
 /// </summary>
 /// <param name="file">The filename of the ogg-file that contains the sound effect.</param>
 public static SoundFile FromOgg(string file)
 {
     return(new SoundFile(SoundBufferData.FromOgg(file)));
 }
コード例 #3
0
ファイル: SoundFile.cs プロジェクト: tomrijnbeek/Cireon.Audio
 /// <summary>
 /// Loads a new soundfile from an ogg-file.
 /// </summary>
 /// <param name="stream">The filestream containing the sound effect in ogg-format.</param>
 public static SoundFile FromOgg(Stream stream)
 {
     return(new SoundFile(SoundBufferData.FromOgg(stream)));
 }
コード例 #4
0
 /// <summary>
 /// Creates a new soundbuffer from an ogg-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 FromOgg(Stream file)
 {
     return(SoundBuffer.FromData(SoundBufferData.FromOgg(file)));
 }