Class AptXEncoderSettings
- Assembly
- VisioForge.Core.dll
AptX encoder settings for high-quality Bluetooth audio encoding. AptX is a psychoacoustic audio codec algorithm developed for Bluetooth audio applications, providing CD-like audio quality with low latency suitable for wireless audio transmission.
public class AptXEncoderSettings : IAudioEncoder, IMediaBlockSettings, IEncoderTextInfoInheritance
Implements
Inherited Members
Remarks
Supported formats: S32LE (32-bit signed little endian). Supported sample rates: 8000, 16000, 24000, 32000, 44100, 48000. Supported channels: 2 (stereo only). AptX uses a fixed 4:1 compression ratio.
Fields
Name
The encoder name.
public static string NameField Value
Properties
Type
Gets the MediaBlock type for this encoder.
public MediaBlockType Type { get; }Property Value
Methods
CreateBlock()
Creates the MediaBlock instance for this encoder.
public MediaBlock CreateBlock()Returns
- MediaBlock
-
A new AptXEncoderBlock instance configured with these settings.
GetCaps()
Retrieves a string representation of the encoder's capabilities (GStreamer caps). This string describes the media formats and properties that the encoder can handle.
public string GetCaps()Returns
GetParameters()
Gets the encoder parameters as a descriptive string.
public string GetParameters()Returns
- string
-
A string describing the AptX encoder configuration.
GetSupportedBitrates()
Gets the supported bitrates. AptX uses a fixed compression ratio, so bitrates are dependent on the sample rate. At 44.1 kHz: ~352 kbps, At 48 kHz: ~384 kbps
public int[] GetSupportedBitrates()Returns
- int[]
-
System.Int32[] containing approximate bitrates for different sample rates.
GetSupportedChannelCounts()
Gets the supported channel counts. AptX only supports stereo (2-channel) audio.
public int[] GetSupportedChannelCounts()Returns
- int[]
-
System.Int32[] containing supported channel counts.
GetSupportedSampleRates()
Gets the supported sample rates for AptX encoding.
public int[] GetSupportedSampleRates()Returns
- int[]
-
System.Int32[] containing supported sample rates in Hz.
IsAvailable()
Determines whether this encoder is available.
public static bool IsAvailable()Returns
- bool
-
trueif this encoder is available; otherwise,false.
ToString()
Returns a String that represents this instance.
public override string ToString()