<xml> </xml>

IrrKlang.NET |

# ISoundSource.AudioFormat Property

Returns informations about the sound source: channel count (mono/stereo), frame count, sample rate, etc. Returns the structure filled with 0 or negative values if not known for this sound for example because because the file could not be opened or similar. Note: If the sound never has been played before, the sound engine will have to open the file and try to get the play lenght from there, so this call could take a bit depending on the type of file.

[Visual Basic]
Public ReadOnly Property AudioFormat As AudioFormat
[C#]
public AudioFormat AudioFormat {get;}

#### See Also

ISoundSource Class | IrrKlang Namespace