|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Opus audio codec wrapper for real-time encoding/decoding. More...
Go to the source code of this file.
Data Structures | |
| struct | opus_codec_t |
| Opus codec context for encoding or decoding. More... | |
Typedefs | |
| typedef struct OpusEncoder | OpusEncoder |
| typedef struct OpusDecoder | OpusDecoder |
Enumerations | |
| enum | opus_application_t { OPUS_APPLICATION_VOIP = 2048 , OPUS_APPLICATION_AUDIO = 2049 , OPUS_APPLICATION_RESTRICTED_LOWDELAY = 2051 } |
| Application mode for opus encoder. More... | |
Functions | |
| opus_codec_t * | opus_codec_create_encoder (opus_application_t application, int sample_rate, int bitrate) |
| Create an Opus encoder. | |
| opus_codec_t * | opus_codec_create_decoder (int sample_rate) |
| Create an Opus decoder. | |
| size_t | opus_codec_encode (opus_codec_t *codec, const float *samples, int num_samples, uint8_t *out_data, size_t out_size) |
| Encode audio frame with Opus. | |
| int | opus_codec_decode (opus_codec_t *codec, const uint8_t *data, size_t data_len, float *out_samples, int out_num_samples) |
| Decode Opus audio frame. | |
| asciichat_error_t | opus_codec_set_bitrate (opus_codec_t *codec, int bitrate) |
| Set encoder bitrate. | |
| int | opus_codec_get_bitrate (opus_codec_t *codec) |
| Get current encoder bitrate. | |
| asciichat_error_t | opus_codec_set_dtx (opus_codec_t *codec, int enable) |
| Enable/disable DTX (Discontinuous Transmission) | |
| void | opus_codec_destroy (opus_codec_t *codec) |
| Destroy an Opus codec instance. | |
Opus audio codec wrapper for real-time encoding/decoding.
Definition in file opus_codec.h.