arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
audio_tools::OpusEncoderSettings Struct Reference

Setting for Opus Encoder where the following values are valid: -1 indicates that the default value should be used and that this codec is not setting the value. More...

#include <CodecOpus.h>

Inheritance diagram for audio_tools::OpusEncoderSettings:
audio_tools::OpusSettings audio_tools::AudioBaseInfo

Public Member Functions

 OpusEncoderSettings ()
 
- Public Member Functions inherited from audio_tools::OpusSettings
 OpusSettings ()
 
- Public Member Functions inherited from audio_tools::AudioBaseInfo
 AudioBaseInfo (const AudioBaseInfo &)=default
 
void copyFrom (AudioBaseInfo info)
 
virtual void logInfo ()
 
bool operator!= (AudioBaseInfo alt)
 
AudioBaseInfooperator= (const AudioBaseInfo &info)
 
bool operator== (AudioBaseInfo alt)
 
void setAudioInfo (AudioBaseInfo info)
 

Public Attributes

int application = OPUS_APPLICATION_AUDIO
 OPUS_APPLICATION_AUDIO, OPUS_APPLICATION_VOIP, OPUS_APPLICATION_RESTRICTED_LOWDELAY.
 
int bitrate = -1
 6000, 12000, 16000, 24000, 32000, 48000, 64000, 96000, 510000, OPUS_AUTO, OPUS_BITRATE_MAX
 
int complexity = -1
 0 to 10
 
int force_channel = -1
 OPUS_AUTO, OPUS_AUTO, 1, 2.
 
int frame_sizes_ms_x2 = -1
 OPUS_FRAMESIZE_2_5_MS,OPUS_FRAMESIZE_5_MS,OPUS_FRAMESIZE_10_MS,OPUS_FRAMESIZE_20_MS,OPUS_FRAMESIZE_40_MS,OPUS_FRAMESIZE_60_MS,OPUS_FRAMESIZE_80_MS,OPUS_FRAMESIZE_100_MS,OPUS_FRAMESIZE_120_MS.
 
int inband_fec = -1
 0, 1
 
int lsb_depth = -1
 8, 24
 
int max_bandwidth = -1
 OPUS_BANDWIDTH_NARROWBAND, OPUS_BANDWIDTH_MEDIUMBAND,OPUS_BANDWIDTH_WIDEBAND, OPUS_BANDWIDTH_SUPERWIDEBAND, OPUS_BANDWIDTH_FULLBAND, OPUS_BANDWIDTH_FULLBAND.
 
int packet_loss_perc = -1
 0, 1, 2, 5
 
int prediction_disabled = -1
 0, 1
 
int singal = -1
 OPUS_AUTO, OPUS_SIGNAL_VOICE, OPUS_SIGNAL_MUSIC.
 
int use_dtx = -1
 0, 1
 
int vbr = -1
 0, 1
 
int vbr_constraint = -1
 0, 1
 
- Public Attributes inherited from audio_tools::OpusSettings
int max_buffer_size = OPUS_DEC_MAX_BUFFER_SIZE
 
- Public Attributes inherited from audio_tools::AudioBaseInfo
int bits_per_sample =16
 
int channels = 0
 
int sample_rate = 0
 

Detailed Description

Setting for Opus Encoder where the following values are valid: -1 indicates that the default value should be used and that this codec is not setting the value.

int channels[2] = {1, 2};
int applications[3] = {OPUS_APPLICATION_AUDIO, OPUS_APPLICATION_VOIP, OPUS_APPLICATION_RESTRICTED_LOWDELAY};

int sample_rates[] = {8000,12000,16000 ,24000,48000}

int bitrates[11] = {6000, 12000, 16000, 24000, 32000, 48000, 64000, 96000, 510000, OPUS_AUTO, OPUS_BITRATE_MAX};
int force_channels[4] = {OPUS_AUTO, OPUS_AUTO, 1, 2};
int use_vbr[3] = {0, 1, 1};
int vbr_constraints[3] = {0, 1, 1};
int complexities[11] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int max_bandwidths[6] = { OPUS_BANDWIDTH_NARROWBAND, OPUS_BANDWIDTH_MEDIUMBAND, OPUS_BANDWIDTH_WIDEBAND, OPUS_BANDWIDTH_SUPERWIDEBAND, OPUS_BANDWIDTH_FULLBAND, OPUS_BANDWIDTH_FULLBAND};

int signals[4] = {OPUS_AUTO, OPUS_AUTO, OPUS_SIGNAL_VOICE, OPUS_SIGNAL_MUSIC};
int inband_fecs[3] = {0, 0, 1};
int packet_loss_perc[4] = {0, 1, 2, 5};
int lsb_depths[2] = {8, 24};
int prediction_disabled[3] = {0, 0, 1};
int use_dtx[2] = {0, 1};
int frame_sizes_ms_x2[9] = {OPUS_FRAMESIZE_2_5_MS,OPUS_FRAMESIZE_5_MS,OPUS_FRAMESIZE_10_MS,OPUS_FRAMESIZE_20_MS,OPUS_FRAMESIZE_40_MS,OPUS_FRAMESIZE_60_MS,OPUS_FRAMESIZE_80_MS,OPUS_FRAMESIZE_100_MS,OPUS_FRAMESIZE_120_MS}/* x2 to avoid 2.5 ms

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ OpusEncoderSettings()

audio_tools::OpusEncoderSettings::OpusEncoderSettings ( )
inline

Default is 5760


The documentation for this struct was generated from the following file: