Skip to content

AudioCompression_SetInt

function

Delphi
function AudioCompression_SetInt (Setting: TAudioCompression_int; Value: LongInt): Boolean;
C++Builder
bool __fastcall AudioCompression_SetInt(TAudioCompression_int Setting, System::LongInt Value);
C#
public bool AudioCompression_SetInt(TAudioCompression_int Setting, int Value);
VB.NET
Public Function AudioCompression_SetInt(Setting As TAudioCompression_int, Value As Integer) As Boolean
C++/Qt
BOOL AudioCompression_SetInt (TAudioCompression_int Setting, int Value);

Sets a TAudioCompression_int setting of the Media Foundation encoder entries of the AudioCompressors list and of the audio encoded by the built-in writers (RecordingMethod = rm_MP4 without audio compressor, rm_MP3, rm_WMA), applied from the next recording, e.g. AudioCompression_SetInt (ac_BitRate, 192000). The setting takes precedence over the setting saved with ShowDialog (dlg_AudioCompressor) and, for rm_WMA, over ASFAudioBitRate; -1 removes it.

Returns false if the value is out of range or if the setting is read only (_readonly).