Commit 795cfef3 authored by Michael Smith's avatar Michael Smith

Remove leftover warnings on non-44 input

svn path=/trunk/vorbis-tools/; revision=3586
parent 1c518363
......@@ -291,11 +291,6 @@ int aiff_open(FILE *in, oe_enc_opt *opt, unsigned char *buf, int buflen)
{
/* From here on, this is very similar to the wav code. Oh well. */
if(format.rate != 44100 && format.rate != 48000)
fprintf(stderr, _("Warning: Vorbis is not currently tuned for this input (%.3f kHz).\n"
" At other than 44.1/48 kHz quality will be degraded.\n"),
(float)format.rate * 1.0e-3);
opt->rate = format.rate;
opt->channels = format.channels;
opt->read_samples = wav_read; /* Similar enough, so we use the same */
......@@ -418,11 +413,6 @@ int wav_open(FILE *in, oe_enc_opt *opt, unsigned char *oldbuf, int buflen)
if( format.align == format.channels*samplesize &&
format.samplesize == samplesize*8)
{
if(format.samplerate != 44100 && format.samplerate != 48000)
fprintf(stderr, _("Warning: Vorbis is not currently tuned for this input (%.3f kHz).\n"
" At other than 44.1/48 kHz quality will be degraded.\n"),
(float)format.samplerate * 1.0e-3);
/* OK, good - we have the one supported format,
now we want to find the size of the file */
opt->rate = format.samplerate;
......@@ -559,11 +549,6 @@ int raw_open(FILE *in, oe_enc_opt *opt)
wav_fmt format; /* fake wave header ;) */
wavfile *wav = malloc(sizeof(wavfile));
if(opt->rate != 44100 && opt->rate != 48000)
fprintf(stderr, _("Warning: Vorbis is not currently tuned for this input (%.3f kHz).\n"
" At other than 44.1/48 kHz quality will be significantly degraded.\n"),
(float)opt->rate * 1.0e-3);
/* construct fake wav header ;) */
format.format = 2;
format.channels = opt->channels;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment