Changeset 360 for libmpc/trunk/mpcdec/mpcdec.c
- Timestamp:
- 10/21/07 14:27:03 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/mpcdec/mpcdec.c
r356 r360 47 47 #define MPCDEC_MAJOR 0 48 48 #define MPCDEC_MINOR 9 49 #define MPCDEC_BUILD 149 #define MPCDEC_BUILD 2 50 50 51 51 #define _cat(a,b,c) #a"."#b"."#c … … 170 170 wavo_fc.m_user_data = fopen(argv[optind + 1], "wb"); 171 171 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); 173 173 if(!err) return !MPC_STATUS_OK; 174 174 } … … 200 200 tmp_buff[i] = tmp; 201 201 } 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) 203 203 #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) 205 205 #endif 206 206 break;
Note: See TracChangeset
for help on using the changeset viewer.