X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=check_wav.h;h=31417de6e1a4fe9ec2c5b8f996ff6c37ff669398;hb=4adde8dae3317fa83b81e7a860c9ed9133e99bb0;hp=0957fe0364c914b7f50c3c1148ef16cbb2350f31;hpb=68630d8b55d688a7c7ce116951c310150aa9c166;p=paraslash.git diff --git a/check_wav.h b/check_wav.h index 0957fe03..31417de6 100644 --- a/check_wav.h +++ b/check_wav.h @@ -46,6 +46,20 @@ struct wav_params { (dst)->sample_format_arg = (src)->sample_format_arg; \ (dst)->sample_format_given = (src)->sample_format_given; +#define LLS_COPY_WAV_PARMS(_dst, _pfx, _lpr) \ + (_dst)->channels_given = lls_opt_given(lls_opt_result( \ + _pfx ## _OPT_CHANNELS, (_lpr))); \ + (_dst)->sample_rate_given = lls_opt_given(lls_opt_result( \ + _pfx ## _OPT_SAMPLE_RATE, (_lpr))); \ + (_dst)->sample_format_given = lls_opt_given(lls_opt_result( \ + _pfx ## _OPT_SAMPLE_FORMAT, (_lpr))); \ + (_dst)->channels_arg = lls_uint32_val(0, lls_opt_result( \ + _pfx ## _OPT_CHANNELS, (_lpr))); \ + (_dst)->sample_rate_arg = lls_uint32_val(0, lls_opt_result( \ + _pfx ## _OPT_SAMPLE_RATE, (_lpr))); \ + (_dst)->sample_format_arg = lls_uint32_val(0, lls_opt_result( \ + _pfx ## _OPT_SAMPLE_FORMAT, (_lpr))); + struct check_wav_context *check_wav_init(struct btr_node *parent, struct btr_node *child, struct wav_params *params, struct btr_node **cw_btrn);