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