LumiSoft Net Help
Read Method (buffer, offset, count)
Namespaces ► LumiSoft.Net.Media ► AudioIn ► Read(array<Byte>[]()[][], Int32, Int32)
Reads up to specified count of bytes from the audion in device.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public override int Read(
    	byte[] buffer,
    	int offset,
    	int count
    )

    Public Overrides Function Read (
    	buffer As Byte(),
    	offset As Integer,
    	count As Integer
    ) As Integer

    public:
    virtual int Read(
    	array<unsigned char>^ buffer,
    	int offset,
    	int count
    ) override

    abstract Read :
            buffer : byte[] *
            offset : int *
            count : int -> int
    override Read :
            buffer : byte[] *
            offset : int *
            count : int -> int

Parameters

buffer (array<Byte>[]()[][])
  Data buffer.

offset (Int32)
  Index in the buffer.

count (Int32)
  Maximum number of bytes to read.

Return Value
Int32
Returns number of bytes readed. Returns 0 if no data in the buffer.
Remarks
The implementation will block until at least one audio sample block can be read.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Is raised when buffer is null reference.
ArgumentOutOfRangeException | Is raised when any of the arguments has out of allowed range.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119