Microphone.GetSampleSizeInBytes Method
Returns the size of the byte array required to hold the specified duration of audio for this microphone object.
Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public int GetSampleSizeInBytes (
TimeSpan duration
)
Parameters
- duration
TimeSpan object that contains the duration of the audio sample.
Return Value
Size (10 ms block aligned), in bytes, of the audio buffer.
See Also
Microphone Class
Microphone Members
Microsoft.Xna.Framework.Audio Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7