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.

[VisualBasic]
PublicReadOnlyPropertyAudioFormatAsAudioFormat
[C#]
publicAudioFormatAudioFormat{get;}

See Also

ISoundSource Class | IrrKlang Namespace