Copyright © 2008-2023 MultiMedia Soft

EncodeFormats.OGG.ResampleFrequency property

Previous pageReturn to chapter overviewNext page

Type

[Visual Basic]

Public Property ResampleFrequency As Int32


 

[C#]

public Int32 ResampleFrequency {get; set;}


 

[C++]

public: __property Int32 get_ResampleFrequency();

public: __property void set_ResampleFrequency(Int32);


 

 

Remarks

Resamples input to the given sample rate (in Hz) before encoding in OGG Vorbis format during recording or CD ripping sessions. Primarily useful for down-sampling for lower-bitrate encoding.

 

 

Important note Starting from version 8 of the component, this property is ignored until the usage of default internal encoders is enabled: see the EnableInternalEncoders method for details about disabling internal encoders.

 

 

Below is some example of the limits of encoding bitrates (which can be set using the EncodeFormats.OGG.Bitrate property) associated to a certain input frequency:

- with 44100 Hz you can reach a minimal bitrate of 64000 kbps

- with 22050 Hz you can reach a minimal bitrate of 32000 kbps

- with 11025 Hz you can reach a minimal bitrate of 16000 kbps

- with 8000 Hz you can reach a minimal bitrate of 12000 kbps

 

Regarding compatibility, to ensure your listeners don't have pitch-shifting (like a slow record or tape) use resample rates from the following list only: 8000 11025 16000 22050 32000 44100 48000

This property is used only if the EncodeFormats.FormatToUse property is set to ENCODING_FORMAT_OGG.

 

This property is the same as entering the --resample n setting inside the Appendix B - OggEnc command line.

 

For further details about encoding in OGG Vorbis format refer to the EncodeOGG class section.

For further information about available encoding formats see the EncodeFormatsMan class.