roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.09k stars 213 forks source link

Return status code instead of bool in IFrameEncoder & IFrameDecoder #739

Open gavv opened 5 months ago

gavv commented 5 months ago

Summary

audio::IFrameEncoder and audio::IFrameDecoder are interfaces for encoding and decoding of audio packets.

Currently they both have begin_frame() and end_frame() methods that don't return any errors. We need to update them to return status::StatusCode, so that they can report error if it happens.

Implementation

Testing

runei commented 4 months ago

Hi, I am interested in solving this issue.

gavv commented 4 months ago

Hi, thanks!

There is a big branch that heavily modifies depacketizer, which is going to be merged in a week or less.

It definitely will have conflicts with this feature. If your PR would be ready first, I'll do rebase by myself. Otherwise, if you're not sure it would be ready soon and don't want to rebase by yourself, you can take a look at #738 (a very similar issue).

Anyways, welcome, let me know what issue to assign to you.

runei commented 4 months ago

I'll take the #738 then. I think it is better to wait the other branch to be merged. Thanks.

gavv commented 4 months ago

The branch I mentioned landed develop today.

NSHABV commented 3 weeks ago

Greetings, I would like to try my hand at this. Are there any more refactors planned for adjacent modules or am I free to fork master and begin developing this?