Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make JitterBufferPacket user_data a pointer sized field #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eliotmiranda
Copy link

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
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
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