roc-streaming / roc-toolkit

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

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

Open gavv opened 1 week ago

gavv commented 1 week ago

Summary

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

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

Implementation

Testing