compat.opus
#includelibopus 1.6.1 — the Opus audio codec (RFC 6716), encoder and decoder, floating point, BSD-3-Clause
#include <opus.h>
mcpp add compat.opus@1.6.1
用法
来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。
// compat.ogg + compat.opus + compat.opusfile — Opus audio end to end.
//
// WHAT THIS ASSERTS AND WHY
//
// Each check exercises a different part of the three source lists, so a file
// left out of a descriptor shows up as a link error or a wrong answer here:
//
// the versions opus_get_version_string, the generated config.h
// CELT 48 kHz stereo music at 128 kb/s, decoded back with
// a signal-to-noise ratio a correct codec reaches
// SILK 16 kHz mono speech mode (OPUS_APPLICATION_VOIP),
// the float encoder of silk/float
// the packet parsers channels, bandwidth, frames, samples per frame
// multistream 5.1 surround (mapping family 1) encoded and decoded
// projection ambisonics (mapping family 3), the matrix code
// the repacketizer two packets merged into one, decoded as one
// libogg an Ogg Opus stream (RFC 7845) paged with ogg_stream_*
// opusfile that stream opened from memory: OpusHead, OpusTags,
// the exact length, sample-accurate seeking, float PCM
//
// A pass means the codec, the container and the file reader agree with one
// another and with the RFCs, on this platform's build of each.
// …
tests/examples/opus/tests/opus.cpp · 项目 tests/examples/opus
构建
- targets
opus (lib)- language
c++23- C standard
c99- import std
- no
- include dirs
*/include
源文件 (34)
*/celt/bands.c*/celt/celt.c*/celt/celt_encoder.c*/celt/celt_decoder.c*/celt/cwrs.c*/celt/entcode.c*/celt/entdec.c*/celt/entenc.c*/celt/kiss_fft.c*/celt/laplace.c*/celt/mathops.c*/celt/mdct.c*/celt/modes.c*/celt/pitch.c*/celt/celt_lpc.c*/celt/quant_bands.c*/celt/rate.c*/celt/vq.c*/silk/*.c*/silk/float/*.c*/src/opus.c*/src/opus_decoder.c*/src/opus_encoder.c*/src/extensions.c*/src/opus_multistream.c*/src/opus_multistream_encoder.c*/src/opus_multistream_decoder.c*/src/repacketizer.c*/src/opus_projection_encoder.c*/src/opus_projection_decoder.c*/src/mapping_matrix.c*/src/analysis.c*/src/mlp.c*/src/mlp_data.c
生成的文件
mcpp_generated/config.h