ref: 26ce8f25ca0a054ce14a4676e8f731603fdb0508
parent: 4a597817bf60c2464a8c5b726cfa0839fc0d13e3
author: cbagwell <cbagwell>
date: Sun Mar 23 13:59:26 EST 2003
DOC updates and vorbis crash fix
--- a/README
+++ b/README
@@ -24,6 +24,8 @@
o GSM files
o Macintosh HCOM files
o Amiga MAUD files
+ o MP3 files (with optional external library)
+ 0 Psion Record.app files
o IRCAM SoundFile files
o NIST SPHERE files
o Turtle beach SampleVision files.
@@ -30,12 +32,12 @@
o Soundtool (DOS) files
o Yamaha TX-16W sampler files.
o Sound Blaster .VOC files
- o Ogg Vorbis files
+ o Ogg Vorbis files (with optional external library)
o Microsoft .WAV files
o PCM, u-law, A-law
o MS ADPCM, IMA ADPCM
o GSM
- o Psion (palmtop) A-law WVE and PRC files
+ o Psion (palmtop) A-law WVE files
o Pseudo-file formats that allow direct playing/recording
from some audio devices under UNIX.
o Pseudo-nul file that reads and writes from/to nowhere
--- a/src/vorbis.c
+++ b/src/vorbis.c
@@ -341,6 +341,11 @@
fprintf(stdout, "Channels: %d Rate: %ld\n", ft->info.channels,
rate);
+ if (rate)
+ {
+ st_fail_errno(ft, ST_EHDR, "Error setting up Ogg Vorbis encorder - make sure you've specied a sane rate and number of channels");
+ }
+
/* Set encoding to average bit rate of 112kbps VBR */
vorbis_encode_init_vbr(&ve->vi, ft->info.channels, ft->info.rate, 0.3f);