Ticket #2957: flacfix_r12810.patch

File flacfix_r12810.patch, 4.8 KB (added by mythtv@…, 17 years ago)

Compilation fixes for commit 12810 and FLAC 1.1.2

  • mythmusic/mythmusic/flacencoder.h

     
    1818            min_residual_partition_order, max_residual_partition_order, \
    1919            rice_parameter_search_dist) \
    2020            { \
    21               FLAC__file_encoder_set_streamable_subset(enc, streamable_subset) \
    22               FLAC__file_encoder_set_do_mid_side_stereo(enc, do_mid_side_stereo) \
    23               FLAC__file_encoder_set_loose_mid_side_stereo(enc, loose_mid_side_stereo) \
    24               FLAC__file_encoder_set_channels(enc, channels) \
    25               FLAC__file_encoder_set_bits_per_sample(enc, bits_per_sample) \
    26               FLAC__file_encoder_set_sample_rate(enc, sample_rate) \
    27               FLAC__file_encoder_set_blocksize(enc, blocksize) \
    28               FLAC__file_encoder_set_max_lpc_order(enc, max_lpc_order) \
    29               FLAC__file_encoder_set_qlp_coeff_precision(enc, qlp_coeff_precision) \
    30               FLAC__file_encoder_set_do_qlp_coeff_prec_search(enc, do_qlp_coeff_prec_search) \
    31               FLAC__file_encoder_set_do_escape_coding(enc, do_escape_coding) \
    32               FLAC__file_encoder_set_do_exhaustive_model_search(enc, do_exhaustive_model_search) \
    33               FLAC__file_encoder_set_min_residual_partition_order(enc, min_residual_partition_order) \
    34               FLAC__file_encoder_set_max_residual_partition_order(enc, max_residual_partition_order) \
    35               FLAC__file_encoder_set_rice_parameter_search_dist(enc, rice_parameter_search_dist) \
     21              FLAC__file_encoder_set_streamable_subset(enc, streamable_subset); \
     22              FLAC__file_encoder_set_do_mid_side_stereo(enc, do_mid_side_stereo); \
     23              FLAC__file_encoder_set_loose_mid_side_stereo(enc, loose_mid_side_stereo); \
     24              FLAC__file_encoder_set_channels(enc, channels); \
     25              FLAC__file_encoder_set_bits_per_sample(enc, bits_per_sample); \
     26              FLAC__file_encoder_set_sample_rate(enc, sample_rate); \
     27              FLAC__file_encoder_set_blocksize(enc, blocksize); \
     28              FLAC__file_encoder_set_max_lpc_order(enc, max_lpc_order); \
     29              FLAC__file_encoder_set_qlp_coeff_precision(enc, qlp_coeff_precision); \
     30              FLAC__file_encoder_set_do_qlp_coeff_prec_search(enc, do_qlp_coeff_prec_search); \
     31              FLAC__file_encoder_set_do_escape_coding(enc, do_escape_coding); \
     32              FLAC__file_encoder_set_do_exhaustive_model_search(enc, do_exhaustive_model_search); \
     33              FLAC__file_encoder_set_min_residual_partition_order(enc, min_residual_partition_order); \
     34              FLAC__file_encoder_set_max_residual_partition_order(enc, max_residual_partition_order); \
     35              FLAC__file_encoder_set_rice_parameter_search_dist(enc, rice_parameter_search_dist); \
    3636            }
    3737  #define encoder_finish(enc) FLAC__file_encoder_finish(enc)
    3838  #define encoder_delete(enc) FLAC__file_encoder_delete(enc)
  • mythmusic/mythmusic/flacencoder.cpp

     
    4343    int rice_parameter_search_dist = 0;
    4444
    4545    encoder = encoder_new();
    46     encoder_setup(encoder, streamable_subset, \
    47                   do_mid_side, loose_mid_side, \
    48                   NUM_CHANNELS, bits_per_sample, \
    49                   sample_rate, blocksize, \
    50                   max_lpc_order, qlp_coeff_precision, \
    51                   qlp_coeff_prec_search, do_escape_coding, \
    52                   do_exhaustive_model_search, \
    53                   min_residual_partition_order, \
    54                   max_residual_partition_order, \
     46    encoder_setup(encoder, streamable_subset,
     47                  do_mid_side, loose_mid_side,
     48                  NUM_CHANNELS, bits_per_sample,
     49                  sample_rate, blocksize,
     50                  max_lpc_order, qlp_coeff_precision,
     51                  qlp_coeff_prec_search, do_escape_coding,
     52                  do_exhaustive_model_search,
     53                  min_residual_partition_order,
     54                  max_residual_partition_order,
    5555                  rice_parameter_search_dist);
    5656
    5757#if !defined(NEWFLAC)
  • mythmusic/mythmusic/flacdecoder.cpp

     
    264264
    265265    decoder = decoder_new();
    266266    decoder_set_md5_checking(decoder, false);
    267     decoder_setup(decoder, flacread, flacseek, flactell, flaclength, \
     267    decoder_setup(decoder, flacread, flacseek, flactell, flaclength,
    268268                        flaceof, flacwrite, flacmetadata, flacerror, this);
    269269
    270270    freq = 0;