Skip to content

Make JitterBufferPacket user_data a pointer sized field#24

Open
eliotmiranda wants to merge 1 commit intoxiph:masterfrom
eliotmiranda:64bit_user_data_in_jitter_buffer
Open

Make JitterBufferPacket user_data a pointer sized field#24
eliotmiranda wants to merge 1 commit intoxiph:masterfrom
eliotmiranda:64bit_user_data_in_jitter_buffer

Conversation

@eliotmiranda
Copy link
Copy Markdown

Make JitterBufferPacket.user_data a pointer sized field so that in 64 bits it can contain a pointer if required.

it can contain a pointer if desired.
@tmatth
Copy link
Copy Markdown
Member

tmatth commented Apr 4, 2019

@eliotmiranda good catch, I'm wondering if it would make more sense for this to simply be a void *, as I think uintptr_t requires C99 or higher.

@eliotmiranda
Copy link
Copy Markdown
Author

Happy either way. But uintptr_t is likely to have less impact on existing clients, so maybe feature-detect C99 and fall back on void * in 64-bits. Messy :-). One could of course define uintptr_t in speex_jitter.h if in 64-bits and not C99.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants