Microphone.GetSampleSizeInBytes Method
Returns the size of the byte array required to hold the specified duration of audio for this microphone object.
Syntax
'Declaration
Public Function GetSampleSizeInBytes ( _
duration As TimeSpan _
) As Integer
public int GetSampleSizeInBytes (
TimeSpan duration
)
public:
int GetSampleSizeInBytes(
TimeSpan duration
)
Parameters
Return Value
Type: Int32
Size (10 ms block aligned), in bytes, of the audio buffer.
Requirements
Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Microphone Class
Microphone Members
Microsoft.Xna.Framework.Audio Namespace
Platforms
Windows Phone