Interface IMicrophone
Microphone support.
Namespace: Evergine.Common.Media
Assembly: Evergine.Common.dll
Syntax
public interface IMicrophone
Properties
CurrentSoundHandle
Gets the current sound handle ID.
Declaration
uint CurrentSoundHandle { get; }
Property Value
| Type | Description |
|---|---|
| uint |
IsConnected
Gets a value indicating whether the current record file path.
Declaration
bool IsConnected { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsRecording
Gets a value indicating whether the microphone is currently recording.
Declaration
bool IsRecording { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Methods
GetRecordedSound()
Gets a soundbase object.
Declaration
SoundBase GetRecordedSound()
Returns
| Type | Description |
|---|---|
| SoundBase | The recorded sound. |
Start()
Starts the recording.
Declaration
void Start()
Start(Stream)
Starts recording in a custom file.
Declaration
void Start(Stream fileStream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | Stream of the recorded file. |
Stop()
Stops the recording.
Declaration
void Stop()
Events
DataAvailable
Event triggered when data is available.
Declaration
event EventHandler<MicrophoneDataEventArgs> DataAvailable
Event Type
| Type | Description |
|---|---|
| EventHandler<MicrophoneDataEventArgs> |