Following a few months of lurking on the list, and vainly trying to get vorbis
to compile
on os/2, I finally managed to get the nightly gzip from saturday to compile
(fairly)
cleanly, and so have finally been able to play with Vorbis on my OS of choice :)
Using the EMX runtime system, and bash for OS/2 (along with a few ported GNU
apps),
both configure and make work fine (except for ogg123 naturally). Oggenc seems to
work, and I've sucessfully encoded a few files using lame 3.86 with ogg
support, and
played them back on a linux system.
When I came to have a go at playing them on os/2, I ran into some problems with
the
examples. EMX needs stdout (but not stdin) set to binary mode to work properly.
Could
someone with CVS access please add the following three lines below the WIN32
binary fix in examples/vorbisfile_example.c examples/encoder_example.c
examples/decoder_example.c
#ifdef __EMX__ /* OS/2 EMX System needs stdout set to binary */
_fsetmode(stdout,"b");
#endif
With this in place, cat <ogg file> | vorbisfile_example > <wav
file> followed by wavplay
<wav file> works fine
I'll take a look at ogg123 and see about the posibilities of making it work
on os/2 once
I'm back at college in a few weeks. In the mean time, I'll put compiled
versions of the
examples and oggenc on my site (http://users.ox.ac.uk/~magd1113/mpeg/) with some
alpha warnings so people can start playing with vorbis on os/2
Keep up the good work guys
Nick Burch
--- >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
'vorbis-dev-request@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.
At 07:15 PM 9/10/00 +0100, you wrote:>Following a few months of lurking on the list, and vainly trying to getvorbis to compile>on os/2, I finally managed to get the nightly gzip from saturday tocompile (fairly)>cleanly, and so have finally been able to play with Vorbis on my OS ofchoice :)>This is cool. Were there any changes needed in libvorbis itself? (If there were, let us know - libvorbis is intended to compile on pretty much any modern platform out there)>Using the EMX runtime system, and bash for OS/2 (along with a few portedGNU apps),>both configure and make work fine (except for ogg123 naturally). Oggencseems to>work, and I've sucessfully encoded a few files using lame 3.86 with oggsupport, and>played them back on a linux system.Oggenc probably has the same problem when using stdin/stdout (which is supported). Have you made changes for this too, or did you decide that it didn't matter enough? The way things are set up you should just be able to give a replacement function for setbinmode(), which exists in oe_win32.c, and is defined out for unix.>someone with CVS access please add the following three lines below the WIN32 >binary fix in examples/vorbisfile_example.c examples/encoder_example.c >examples/decoder_example.c > >#ifdef __EMX__ /* OS/2 EMX System needs stdout set to binary */ > _fsetmode(stdout,"b"); >#endifI'll do this when I next have a chance. Michael p.s. Please wrap your lines at < 80 columns --- >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 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Can someone with cvs access please check and apply these changes. Could someone
also please email me (not the list) the location of a good howto on diff and
patch, so I can use that in the future!
to configure.guess:
i*86:OS/2:*:*)
echo ${UNAME_MACHINE}-pc-os/2-${UNAME_VERSION}
exit 0;;
omewhere relevant in the machine guessing section
Attached is oe_emx.c to be added to vorbis-tools
In vorbis-tools/platform.h, before the #else but after all the win32 stuff:
#elif (defined __EMX__)
void setbinmode(FILE *);
(Michael Smith has hopefully now added the changes needed to the examples)
I'll look into the configure script some more, to see if anything specific
to
os/2 needs adding there. I'm also investigating a os2 module for libao, to
allow ogg123 to work with the native os/2 sound system, known as mmos2.
Nick
<HR NOSHADE>
<UL>
<LI>application/octet-stream attachment: oe_emx.c
</UL>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oe_emx.c
Type: application/octet-stream
Size: 1224 bytes
Desc: not available
Url :
http://lists.xiph.org/pipermail/vorbis-dev/attachments/20000915/cd9b525a/oe_emx-0001.obj