This topic has not yet been rated - Rate this topic

Microphone.GetSampleSizeInBytes Method

XNA Game Studio 4.0
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)

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.
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ