Ticket #1128: extract2.diff
File extract2.diff, 1.0 KB (added by , 21 years ago) |
---|
-
extract.c
old new 221 221 222 222 if (sample_rate == 0xa5 || sample_rate == 0xa6) 223 223 real_samplerate = 11025; 224 if (sample_rate == 0xd2 || sample_rate == 0xd3)225 real_samplerate = 22050;226 224 else 227 real_samplerate = 1000000 / (256 - sample_rate); 225 if (sample_rate == 0xd2 || sample_rate == 0xd3) 226 real_samplerate = 22050; 227 else 228 real_samplerate = 1000000 / (256 - sample_rate); 228 229 229 230 printf(" - sample rate = %d (%02x)\n", 1000000 / (256 - sample_rate), sample_rate); 230 231 printf(" - compression = %s (%02x)\n", … … 272 273 if (oggparms.silent) { 273 274 strcat(fbuf, "--quiet "); 274 275 } 275 sprintf(fbuf_temp, "-q %i -r -C 1 --raw-endianness=1 -R %i --resample 22050 %s -o %s", 276 if (real_samplerate!=22050) { 277 strcat(fbuf, "--resample 22050 "); 278 } 279 sprintf(fbuf_temp, "-q %i -r -C 1 --raw-endianness=1 -R %i %s -o %s", 276 280 oggparms.quality, real_samplerate, 277 281 rawname, mp3name); 278 282 strcat(fbuf, fbuf_temp);