Halyri  0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
Halyri.AudioVideoManagers.WavAudioSampleCapturer Class Reference

Class for capturing PCM audio fragments from XNA microphone and processing them as WAVE files. More...

Public Member Functions

 WavAudioSampleCapturer (Microphone mic)
 Instantializes a new WavAudioSampleCapturer using the provided Microphone instance. The Microphone must new initalized, but not in use or started. More...
 
void StartCapture ()
 Stars capturing from the XNA Microphone. FrameworkDispatcher.Update needs to have been called at least once prior to this operation and needs to be called reqularly during recording. More...
 
void StopCapture ()
 Stops capturing from the XNA Microphone. More...
 
void UpdateSampleParameters (int sampleLengthMilliSeconds)
 Sets the length of fragments to be captured from the Microphone. Valid range is 50 to 1000 milliseconds. More...
 

Public Attributes

WaveSegmentCaptured WaveSegmentCapturedEvent
 
PcmSegmentCaptured PcmSegmentCapturedEvent
 

Properties

int AudioSampleMilliSeconds [get]
 
int SampleRate [get]
 
int SampleSizeBytes [get]
 

Detailed Description

Class for capturing PCM audio fragments from XNA microphone and processing them as WAVE files.

<author>Veli-Mikko Puupponen</author>

Constructor & Destructor Documentation

Halyri.AudioVideoManagers.WavAudioSampleCapturer.WavAudioSampleCapturer ( Microphone  mic)

Instantializes a new WavAudioSampleCapturer using the provided Microphone instance. The Microphone must new initalized, but not in use or started.

Parameters
mic

Member Function Documentation

void Halyri.AudioVideoManagers.WavAudioSampleCapturer.StartCapture ( )

Stars capturing from the XNA Microphone. FrameworkDispatcher.Update needs to have been called at least once prior to this operation and needs to be called reqularly during recording.

void Halyri.AudioVideoManagers.WavAudioSampleCapturer.StopCapture ( )

Stops capturing from the XNA Microphone.

void Halyri.AudioVideoManagers.WavAudioSampleCapturer.UpdateSampleParameters ( int  sampleLengthMilliSeconds)

Sets the length of fragments to be captured from the Microphone. Valid range is 50 to 1000 milliseconds.

Parameters
sampleLengthMilliSecondsLength of single captured audio fragment in milliseconds

Member Data Documentation

PcmSegmentCaptured Halyri.AudioVideoManagers.WavAudioSampleCapturer.PcmSegmentCapturedEvent
WaveSegmentCaptured Halyri.AudioVideoManagers.WavAudioSampleCapturer.WaveSegmentCapturedEvent

Property Documentation

int Halyri.AudioVideoManagers.WavAudioSampleCapturer.AudioSampleMilliSeconds
get
int Halyri.AudioVideoManagers.WavAudioSampleCapturer.SampleRate
get
int Halyri.AudioVideoManagers.WavAudioSampleCapturer.SampleSizeBytes
get

The documentation for this class was generated from the following file: