dnl *** wavpack ***
translit(dnm, m, l) AM_CONDITIONAL(USE_WAVPACK, true)
AG_GST_CHECK_FEATURE(WAVPACK, [wavpack plug-in], wavpack, [
- PKG_CHECK_MODULES(WAVPACK, wavpack >= 4.40.0, HAVE_WAVPACK=yes, [
- PKG_CHECK_MODULES(WAVPACK, wavpack >= 4.20, [
- HAVE_WAVPACK=yes
- AC_DEFINE(WAVPACK_OLD_API, 1, [old wavpack API])
- ],[
- HAVE_WAVPACK=no
- ])
- ])
- AC_SUBST(WAVPACK_CFLAGS)
- AC_SUBST(WAVPACK_LIBS)
+ AG_GST_PKG_CHECK_MODULES(WAVPACK, wavpack >= 4.60.0)
])
dnl *** qtdemux & matroska prefer to have zlib ***
{
memmove (header, buf, sizeof (WavpackHeader));
-#ifndef WAVPACK_OLD_API
WavpackLittleEndianToNative (header, (char *) WavpackHeaderFormat);
-#else
- little_endian_to_native (header, WavpackHeaderFormat);
-#endif
return (memcmp (header->ckID, "wvpk", 4) == 0);
}
(dec->sample_rate != WavpackGetSampleRate (dec->context)) ||
(dec->channels != WavpackGetNumChannels (dec->context)) ||
(dec->depth != WavpackGetBytesPerSample (dec->context) * 8) ||
-#ifdef WAVPACK_OLD_API
- (dec->channel_mask != dec->context->config.channel_mask);
-#else
(dec->channel_mask != WavpackGetChannelMask (dec->context));
-#endif
if (!gst_pad_has_current_caps (GST_AUDIO_DECODER_SRC_PAD (dec)) ||
format_changed) {
dec->channels = WavpackGetNumChannels (dec->context);
dec->depth = WavpackGetBytesPerSample (dec->context) * 8;
-#ifdef WAVPACK_OLD_API
- channel_mask = dec->context->config.channel_mask;
-#else
channel_mask = WavpackGetChannelMask (dec->context);
-#endif
if (channel_mask == 0)
channel_mask = gst_wavpack_get_default_channel_mask (dec->channels);
const gchar *reason = "unknown";
if (dec->context) {
-#ifdef WAVPACK_OLD_API
- reason = dec->context->error_message;
-#else
reason = WavpackGetErrorMessage (dec->context);
-#endif
} else {
reason = "couldn't create decoder context";
}
{GST_WAVPACK_ENC_MODE_FAST, "Fast Compression", "fast"},
{GST_WAVPACK_ENC_MODE_DEFAULT, "Normal Compression", "normal"},
{GST_WAVPACK_ENC_MODE_HIGH, "High Compression", "high"},
-#ifndef WAVPACK_OLD_API
{GST_WAVPACK_ENC_MODE_VERY_HIGH, "Very High Compression", "veryhigh"},
-#endif
{0, NULL, NULL}
};
case GST_WAVPACK_ENC_MODE_HIGH:
enc->wp_config->flags |= CONFIG_HIGH_FLAG;
break;
-#ifndef WAVPACK_OLD_API
case GST_WAVPACK_ENC_MODE_VERY_HIGH:
enc->wp_config->flags |= CONFIG_HIGH_FLAG;
enc->wp_config->flags |= CONFIG_VERY_HIGH_FLAG;
break;
-#endif
}
/* Bitrate, enables lossy mode */