diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-08-08 23:14:42 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-08-08 23:14:42 +1000 |
| commit | 1b6811663caf07717ce15f3d3bbb1195397a1a33 (patch) | |
| tree | 2babe8ab0769d97cd8a785b26c3dfc499a6924d8 /src/codecs/include/opus.hpp | |
| parent | 6c3501dbcbd1095293d8a4d4b83311e94a7df9a8 (diff) | |
| download | tangara-fw-1b6811663caf07717ce15f3d3bbb1195397a1a33.tar.gz | |
Add libogg for handling opus streams reasonably
Diffstat (limited to 'src/codecs/include/opus.hpp')
| -rw-r--r-- | src/codecs/include/opus.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/codecs/include/opus.hpp b/src/codecs/include/opus.hpp index f824a7cb..50717b73 100644 --- a/src/codecs/include/opus.hpp +++ b/src/codecs/include/opus.hpp @@ -13,6 +13,8 @@ #include <string> #include <utility> +#include "ogg.hpp" +#include "ogg/ogg.h" #include "opus.h" #include "sample.hpp" #include "span.hpp" @@ -44,6 +46,7 @@ class XiphOpusDecoder : public ICodec { -> Result<void> override; private: + OggContainer ogg_; OpusDecoder* opus_; cpp::span<int16_t> sample_buffer_; int32_t pos_in_buffer_; |
