Microphone.GetSampleDuration Method (Microsoft.Xna.Framework.Audio)

Returns the duration based on the size of the buffer (assuming 16-bit PCM data).

Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public TimeSpan GetSampleDuration(
	int sizeInBytes
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

sizeInBytes
Type: System.Int32
Size, in bytes

Return Value

Type: System.TimeSpan
TimeSpan of the duration.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web