Commit 4a0b9079 authored by jm's avatar jm

jitter buffer now uses JitterBufferPacket internally. Also added a user_data

field to JitterBufferPacket.


git-svn-id: http://svn.xiph.org/trunk/speex@14074 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 90f07f37
......@@ -63,6 +63,7 @@ struct _JitterBufferPacket {
spx_uint32_t len; /**< Length of the packet in bytes */
spx_uint32_t timestamp; /**< Timestamp for the packet */
spx_uint32_t span; /**< Time covered by the packet (same units as timestamp) */
spx_uint32_t user_data; /**< Put whatever data you like here (it's ignored by the jitter buffer) */
};
/** Packet has been retrieved */
......
This diff is collapsed.
......@@ -55,7 +55,7 @@ void speex_jitter_get(SpeexJitter *jitter, spx_int16_t *out, int *current_timest
}
}
ret = jitter_buffer_get(jitter->packets, &packet, NULL);
ret = jitter_buffer_get(jitter->packets, &packet, jitter->frame_size, NULL);
if (ret != JITTER_BUFFER_OK)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment