From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro Questions... Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <39a9a3f4 DOT 27945502 AT news DOT wins DOT uva DOT nl> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 44 X-Trace: +rnM+lEBnhpRBov2K3ZLKvoFrCrQa6qCYqTJLN0hR5Cx8jCdGIz+qcPD2vaivvNMTbJ0DaBJEqU8!ciJmK+95f7wrFetYQ/fgkhw6XkDnkSbMuKGLl1YjlwSWTG9EFIl+P17nuumewF45qDYWa/5NWiE+!Vg== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Thu, 31 Aug 2000 00:12:21 GMT Distribution: world Date: Thu, 31 Aug 2000 00:12:21 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 30 Aug 2000 22:14:30 GMT, eglebbk AT dds DOT nl (Evert Glebbeek) wrote: >From: Damian Yerrick >>"JS" wrote: >> >>> 1. What command line parameters can I use to reduce the size of my exe. >>>files. ALSO, what do these parameters mean and do? >> >>gcc -s foo.c -lalleg -o foo.exe >>-s : remove debugging symbols >> >>upx -9 foo.exe >>upx : pack an existing DJGPP exe >> http://upx.tsx.org/ > >Is there a qualitative difference between upx and djp? UPX springs from the djp and lzop projects. UPX uses a newer (smaller/faster?) compression library. UPX also supports more exe formats (DOS MZ, DJGPP COFF, Win32 PE, Watcom LE, Linux ELF...) >>> 2. Is it ABSOLUTELY necessary to call 'detect_digi_driver()' AND >>>'detect_midi_driver()' before calling 'install_sound()'? >> >>No. In fact I don't recommend it. > >Why not? If you call detect_*_driver() first, you won't hear MIDI if there is no digi available, and you won't hear digi if there is no MIDI available. If you skip detect_*_driver() and just install_sound(), you can still hear one or the other. I learned this the hard way when a new Linux kernel I compiled lacked support for SB FM MIDI, causing Allegro not to play waves. I removed the detect_*() calls from the program and it worked fine. -- MS (n) 1. A debilitating and surprisingly widespread affliction that renders the sufferer barely able to perform the simplest task. 2. A disease, multiple sclerosis (see). This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/