Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Vorbis tools
Commits
795cfef3
Commit
795cfef3
authored
Jul 11, 2002
by
Michael Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove leftover warnings on non-44 input
svn path=/trunk/vorbis-tools/; revision=3586
parent
1c518363
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
oggenc/audio.c
oggenc/audio.c
+0
-15
No files found.
oggenc/audio.c
View file @
795cfef3
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment