Ignore:
Timestamp:
10/21/07 14:27:03 (17 years ago)
Author:
r2d
Message:

correction for mono files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/mpcdec/mpcdec.c

    r356 r360  
    4747#define MPCDEC_MAJOR 0
    4848#define MPCDEC_MINOR 9
    49 #define MPCDEC_BUILD 1
     49#define MPCDEC_BUILD 2
    5050
    5151#define _cat(a,b,c) #a"."#b"."#c
     
    170170                        wavo_fc.m_user_data = fopen(argv[optind + 1], "wb");
    171171        if(!wavo_fc.m_user_data) return !MPC_STATUS_OK;
    172         err = waveformat_output_open(&wav_output, wavo_fc, si.channels, 16, 0, si.sample_freq, (t_wav_uint32) si.samples * 2);
     172        err = waveformat_output_open(&wav_output, wavo_fc, si.channels, 16, 0, si.sample_freq, (t_wav_uint32) si.samples * si.channels);
    173173        if(!err) return !MPC_STATUS_OK;
    174174    }
     
    200200                                tmp_buff[i] = tmp;
    201201                        }
    202                         if(waveformat_output_process_int16(&wav_output, tmp_buff, frame.samples*2) < 0)
     202                        if(waveformat_output_process_int16(&wav_output, tmp_buff, frame.samples * si.channels) < 0)
    203203#else
    204             if(waveformat_output_process_float32(&wav_output, sample_buffer, frame.samples*2) < 0)
     204                        if(waveformat_output_process_float32(&wav_output, sample_buffer, frame.samples * si.channels) < 0)
    205205#endif
    206206                break;
Note: See TracChangeset for help on using the changeset viewer.