• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • SipLib.Audio.Windows
      • AudioDeviceStateChangedDelegate
      • AudioInSamplesReadyDelegate
      • WaveAudioStatusEnum
      • WaveOutDest
      • WindowsAudioIo
      • WindowsAudioUtils

    Class WindowsAudioUtils

    Inheritance
    object
    WindowsAudioUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SipLib.Audio.Windows
    Assembly: SipLib.Audio.Windows.dll
    Syntax
    public class WindowsAudioUtils

    Methods

    ReadWaveFile(string)

    Reads the audio samples from a WAV file. The file format must be mono, 16 bits/sample linear (PCM) and the sample rate must be 8000 or 16000 samples per second.

    Declaration
    public static AudioSampleData ReadWaveFile(string FilePath)
    Parameters
    Type Name Description
    string FilePath

    Location of the file

    Returns
    Type Description
    AudioSampleData
    Exceptions
    Type Condition
    FileNotFoundException

    Thrown if the file does not exist.

    ArgumentException

    Thrown if unable to read the file or if the file format is incorrect.

    In this article
    Back to top Generated by DocFX