This topic has not yet been rated - Rate this topic

Microphone.GetSampleDuration Method

XNA Game Studio 4.0
Returns the duration of audio playback based on the size of the buffer.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public TimeSpan GetSampleDuration (
         int sizeInBytes
)

Parameters

sizeInBytes
Size, in bytes, of the audio data.

Return Value

TimeSpan object that represents the duration of the audio playback.

sizeInBytes must satisfy format alignment restrictions.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ