[xiph-cvs] cvs commit: vorbis-tools/oggenc audio.c
Michael Smith
msmith at xiph.org
Thu Jul 11 07:20:33 PDT 2002
msmith 02/07/11 07:20:33
Modified: oggenc audio.c
Log:
Remove leftover warnings on non-44 input
Revision Changes Path
1.27 +0 -15 vorbis-tools/oggenc/audio.c
Index: audio.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/audio.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- audio.c 2002/05/30 12:13:22 1.26
+++ audio.c 2002/07/11 14:20:33 1.27
@@ -291,11 +291,6 @@
{
/* 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 @@
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;
@@ -558,11 +548,6 @@
{
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;
<p><p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list