Microphone.GetSampleSizeInBytes Method (Microsoft.Xna.Framework.Audio)
Returns the size, in bytes, of the array required to hold the specified duration of 16-bit PCM data.
Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
- C#
- VB
- F#
public int GetSampleSizeInBytes( TimeSpan duration )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- duration
-
Type: System.TimeSpan
TimeSpan of the duration of the sample.
Return Value
Type: System.Int32Size, in bytes, of the buffer.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web