Lines Matching refs:spx_int32_t
69 #define TSUB(a,b) ((spx_int32_t)((a)-(b)))
71 #define GT32(a,b) (((spx_int32_t)((a)-(b)))>0)
72 #define GE32(a,b) (((spx_int32_t)((a)-(b)))>=0)
73 #define LT32(a,b) (((spx_int32_t)((a)-(b)))<0)
74 #define LE32(a,b) (((spx_int32_t)((a)-(b)))<=0)
86 spx_int32_t timing[MAX_TIMINGS]; /**< Sorted list of all timings ("latest" packets first) */
143 spx_int32_t buffered; /**< Amount of data we think is still buffered by the application (timestamp units)*/
150 spx_int32_t delay_step; /**< Size of the steps when adjusting buffering (timestamp units) */
151 spx_int32_t concealment_size; /**< Size of the packet loss concealment "units" */
179 spx_int32_t best_cost=0x7fffffff;
187 spx_int32_t deltaT;
227 spx_int32_t cost;
278 spx_int32_t tmp;
335 static void update_timings(JitterBuffer *jitter, spx_int32_t timing)
396 update_timings(jitter, ((spx_int32_t)packet->timestamp) - ((spx_int32_t)jitter->next_stop) - jitter->buffer_margin);
465 EXPORT int jitter_buffer_get(JitterBuffer *jitter, JitterBufferPacket *packet, spx_int32_t desired_span, spx_int32_t *start_offset)
582 spx_int32_t offset;
590 update_timings(jitter, ((spx_int32_t)jitter->packets[i].timestamp) - ((spx_int32_t)jitter->arrival[i]) - jitter->buffer_margin);
613 offset = (spx_int32_t)jitter->packets[i].timestamp-(spx_int32_t)jitter->pointer_timestamp;
716 static int _jitter_buffer_update_delay(JitterBuffer *jitter, JitterBufferPacket *packet, spx_int32_t *start_offset)
739 EXPORT int jitter_buffer_update_delay(JitterBuffer *jitter, JitterBufferPacket *packet, spx_int32_t *start_offset)
789 jitter->buffer_margin = *(spx_int32_t*)ptr;
792 *(spx_int32_t*)ptr = jitter->buffer_margin;
803 *(spx_int32_t*)ptr = count;
812 jitter->delay_step = *(spx_int32_t*)ptr;
815 *(spx_int32_t*)ptr = jitter->delay_step;
818 jitter->concealment_size = *(spx_int32_t*)ptr;
821 *(spx_int32_t*)ptr = jitter->concealment_size;
824 jitter->max_late_rate = *(spx_int32_t*)ptr;
829 *(spx_int32_t*)ptr = jitter->max_late_rate;
832 jitter->latency_tradeoff = *(spx_int32_t*)ptr;
835 *(spx_int32_t*)ptr = jitter->latency_tradeoff;