Skip to content

feat: add eos events #184

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

Merged
merged 1 commit into from
Sep 8, 2023
Merged

feat: add eos events #184

merged 1 commit into from
Sep 8, 2023

Conversation

theomonnom
Copy link
Member

This will allow us to make sure we're not leaking any memory by ignoring some ffi events while closing too early

@theomonnom theomonnom requested a review from davidzhao September 8, 2023 20:46
uint64 stream_handle = 1;
oneof message {
AudioFrameReceived frame_received = 2;
AudioStreamEOS eos = 3;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this works, but you can also consider to use a bool as a marker. with oneof messages, the position/field name is sufficient to mark special types.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL, I think it's ok for now

@theomonnom theomonnom merged commit d15b8d1 into main Sep 8, 2023
@theomonnom theomonnom deleted the theo/eos branch September 8, 2023 21:24
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