X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fencoder_example.c;h=38070a9d47fe23d607a8e2fceda173f2ca598886;hb=8b8e92ebb388a84c70e21d1e548fb068dcfefbf4;hp=7963ce647e6da3d60b344336a3ebbb3da21620fa;hpb=589e3a0cc237c437a97ae37136065bc16f3f13b7;p=platform%2Fupstream%2Flibvorbis.git diff --git a/examples/encoder_example.c b/examples/encoder_example.c index 7963ce6..38070a9 100644 --- a/examples/encoder_example.c +++ b/examples/encoder_example.c @@ -12,7 +12,7 @@ ******************************************************************** function: simple example encoder - last mod: $Id: encoder_example.c,v 1.8 2000/06/15 09:18:34 xiphmont Exp $ + last mod: $Id: encoder_example.c,v 1.9 2000/08/14 22:33:50 xiphmont Exp $ ********************************************************************/ @@ -32,6 +32,9 @@ #include #endif +#if defined(macintosh) && defined(__MWERKS__) +#include /* CodeWarrior's Mac "command-line" support */ +#endif #define READ 1024 signed char readbuffer[READ*4+44]; /* out of the data segment, not the stack */ @@ -51,6 +54,13 @@ int main(){ int eos=0; +#if defined(macintosh) && defined(__MWERKS__) + int argc = 0; + char **argv = NULL; + argc = ccommand(&argv); /* get a "command line" from the Mac user */ + /* this also lets the user set stdin and stdout */ +#endif + /* we cheat on the WAV header; we just bypass 44 bytes and never verify that it matches 16bit/stereo/44.1kHz. This is just an example, after all. */