Microphone.GetData Method (Microsoft.Xna.Framework.Audio)
Gets the latest available data from the microphone.
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 GetData( Byte[] buffer, int offset, int count )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- buffer
-
Type: System.Byte[]
Buffer, in bytes, of the captured data (16-bit PCM).
- offset
-
Type: System.Int32
Byte offset.
- count
-
Type: System.Int32
Amount, in bytes.
Return Value
Type: System.Int32The buffer size, in bytes, of the captured data.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web