Interface ISpeexDSPJitterBuffer
A Speexdsp echo jitter buffer interface.
Inherited Members
Namespace: SpeexDSPSharp.Core.Interfaces
Assembly: SpeexDSPSharp.Core.dll
Syntax
public interface ISpeexDSPJitterBuffer : IDisposable
Methods
| Edit this page View SourceCtl<T>(JitterBufferCtl, ref T)
Performs a ctl request.
Declaration
int Ctl<T>(JitterBufferCtl request, ref T value) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| JitterBufferCtl | request | The request you want to specify. |
| T | value | The input/output value. |
Returns
| Type | Description |
|---|---|
| int | 0 if no error, -1 if request is unknown. |
Type Parameters
| Name | Description |
|---|---|
| T | The type you want to input/output. |
Get(ref SpeexDSPJitterBufferPacket, int, ref int)
Get one packet from the jitter buffer.
Declaration
JitterBufferState Get(ref SpeexDSPJitterBufferPacket packet, int desired_span, ref int start_offset)
Parameters
| Type | Name | Description |
|---|---|---|
| SpeexDSPJitterBufferPacket | packet | Returned packet. |
| int | desired_span | Number of samples (or units) we wish to get from the buffer (no guarantee). |
| int | start_offset | Timestamp for the returned packet. |
Returns
| Type | Description |
|---|---|
| JitterBufferState |
GetAnother(ref SpeexDSPJitterBufferPacket)
Used right after jitter_buffer_get() to obtain another packet that would have the same timestamp. This is mainly useful for media where a single "frame" can be split into several packets.
Declaration
int GetAnother(ref SpeexDSPJitterBufferPacket packet)
Parameters
| Type | Name | Description |
|---|---|---|
| SpeexDSPJitterBufferPacket | packet | Returned packet. |
Returns
| Type | Description |
|---|---|
| int |
GetPointerTimestamp()
Get pointer timestamp of jitter buffer.
Declaration
int GetPointerTimestamp()
Returns
| Type | Description |
|---|---|
| int | I have no clue what this returns. |
Put(ref SpeexDSPJitterBufferPacket)
Put one packet into the jitter buffer.
Declaration
void Put(ref SpeexDSPJitterBufferPacket packet)
Parameters
| Type | Name | Description |
|---|---|---|
| SpeexDSPJitterBufferPacket | packet | Incoming packet. |
RemainingSpan(int)
Telling the jitter buffer about the remaining data in the application buffer.
Declaration
void RemainingSpan(int remaining_span)
Parameters
| Type | Name | Description |
|---|---|---|
| int | remaining_span | Amount of data buffered by the application (timestamp units). |
Reset()
Reset the jitter buffer to its original state.
Declaration
void Reset()
Tick()
Advance by one tick.
Declaration
void Tick()
UpdateDelay(ref SpeexDSPJitterBufferPacket, ref int)
N.A.
Declaration
int UpdateDelay(ref SpeexDSPJitterBufferPacket packet, ref int start_offset)
Parameters
| Type | Name | Description |
|---|---|---|
| SpeexDSPJitterBufferPacket | packet | |
| int | start_offset |
Returns
| Type | Description |
|---|---|
| int |