RecordPlayer Class |
Namespace: Alvas.Audio
The RecordPlayer type exposes the following members.
Name | Description | |
---|---|---|
![]() | RecordPlayer | Initializes a new instance of the RecordPlayer class |
Name | Description | |
---|---|---|
![]() | Backward |
Backwards current stream position
|
![]() | Close |
Closes audio stream
|
![]() | Equals | (Inherited from Object.) |
![]() | Forward |
Forwards current stream position
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Open |
Open existing audio file for recording and playback
|
![]() | Pause |
Pauses recording or playback
|
![]() | Play |
Plays audio stream
|
![]() | Play(Int32) |
Plays audio stream from stated position
|
![]() | Record |
Records audio stream
|
![]() | Record(Int32) |
Records audio stream from specified position in milliseconds.
|
![]() | Record(Int32, WriteMode) |
Records audio stream from specified position in milliseconds with specified mode.
|
![]() | Stop |
Stops recording or playback
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() ![]() | BufferSizeInMSProperty |
BufferSizeInMS property name
|
![]() ![]() | DurationProperty |
Duration property name
|
![]() ![]() | PlayerVolumeMuteProperty |
PlayerVolumeMute property name
|
![]() ![]() | PlayerVolumeProperty |
PlayerVolume property name
|
![]() ![]() | PositionProperty |
Position property name
|
![]() ![]() | RecorderLinesIndexProperty |
RecorderLinesIndex property name
|
![]() ![]() | RecorderLinesProperty |
RecorderLines property name
|
![]() ![]() | RecorderVolumeProperty |
RecorderVolume property name
|
![]() ![]() | SilentLevelProperty |
SilentLevel property name
|
![]() ![]() | SkipSilentProperty |
SkipSilent property name
|
![]() ![]() | StateProperty |
State property name
|
![]() ![]() | VolumeLevelProperty |
VolumeLevel property name
|
![]() ![]() | VolumeScaleProperty |
VolumeScale property name
|
Name | Description | |
---|---|---|
![]() | BufferSizeInMS |
Gets or sets the audio buffer size in milliseconds. By default 500 ms.
|
![]() | CanRecord |
Indicates whether the stream can be recorded.
|
![]() | Duration |
Returns audio stream duration in ms
|
![]() | FormatDetails |
Gets format details for current audio stream
|
![]() | PlayerID |
Gets or sets the current player. If -1 the system uses suitable player.
|
![]() | PlayerVolume |
Sets and gets playback volume
|
![]() | PlayerVolumeMute |
Sets and gets playback mute
|
![]() | Position |
Gets current position for audio stream
|
![]() | RecorderID |
Gets or sets the current recorder. If -1 the system uses suitable recorder.
|
![]() | RecorderLines |
Gets recorder lines
|
![]() | RecorderLinesIndex |
Gets and sets selected recorder lines index
|
![]() | RecorderVolume |
Sets and gets recording volume
|
![]() | SilentLevel |
Sets and gets sound level, which will be silence
|
![]() | SkipSilent |
Skip silence during recording
|
![]() | State |
Current device state
|
![]() ![]() | VolumeData |
Volume audio data array for current audio operation.
|
![]() | VolumeDataLength |
Length of volume audio data array
|
![]() | VolumeLevel |
Volume level for current audio operation
|
![]() | VolumeScale |
Scales the volume of audio data. 100 is normal volume, 50 is reduced by half, 200 is increased in 2 times
|
Name | Description | |
---|---|---|
![]() | PropertyChanged |
Occurs when a property changes values.
|
public static void TestRecordPlayer() { RecordPlayer rp = new RecordPlayer(); rp.PropertyChanged += new PropertyChangedEventHandler(rp_PropertyChanged); rp.Open(new Mp3Reader(File.OpenRead("in.mp3"))); rp.Play(); } static void rp_PropertyChanged(object sender, PropertyChangedEventArgs e) { switch (e.PropertyName) { case RecordPlayer.StateProperty: RecordPlayer rp = ((RecordPlayer)sender); if (rp.State == DeviceState.Stopped) { rp.Close(); } break; } }